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