a,b,c=map(int,input().split())
print(int(a*0.2+b*0.3+c*0.5))