#include<iostream> using namespace std; int main(){ double a,b,c,x; cin>>a>>b>>c; x=(a*2.0+b*3.0+c*5.0)/10.0; printf("MEDIA = %.1lf",x); return 0; }