#include<stdio.h> #include<math.h> int main() { double A,B,C; scanf("%lf\n%lf\n%lf\n",&A,&B,&C); printf("MEDIA = %.1lf",(A*2+B*3+C*5)/10); }