#include<iostream> #include<cstdio> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; double m; m=(2*a+b*3+c*5)/10; printf("MEDIA = %.1lf",m); return 0; }