```cpp
int main(){ double A,B,C; scanf(“%lf%lf%lf”,&A,&B,&C); printf(“MEDIA = %.1lf”,(2A+3B+5*C)/(2+3+5)); return 0; }