#coding: utf-8
# Média Final
# (C) 2016, Yovany Cunha/UFCG, Programaçao I

import math

nota1 = float(raw_input())
nota2 = float(raw_input())
media = (nota1*0.6+nota2*0.4)

print 'Média final: %.1f'% media
