A = eval(input()) B = eval(input()) C = eval(input()) print('MEDIA = {:.1f}'.format(A*0.2 + B*0.3 + C*0.5))