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