#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b; c=(a*3.5+b*7.5)/(3.5+7.5); printf("MEDIA = %.5lf",c); return 0; }