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