A = float(input())
B = float(input())
MEDIA = (A * 3.5 + B * 7.5) / 11
print('MEDIA ={:.5f}'.format(MEDIA))

#exercico com prova substitutiva
'''n1 = float(input())
n2 = float(input())
media = (n1 + n2) / 2
if media >= 6:
    print('aprovado')
else:
    sub = (n1 + 10) / 2
    if sub >= 6:
        print('talvez com a sub')
    else:
        print('reprovado')
'''