# 总成绩=作业成绩×20%+小测成绩×30%+期末考试成绩×50% a,b,c=map(int,input().split()) number=a*0.2+b*0.3+c*0.5 print(int(number))