#include <bits/stdc++.h> using namespace std; int main() { double A, B; cin >> A >> B; cout << "MEDIA = " << fixed << setprecision(5) << (A * 3.5 + B * 7.5) / 11 << '\n'; return 0; }