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