l = list(map(int, input().split()))
x = [0.2, 0.1, 0.2, 0.5]
r = list(map(lambda x,y:x*y, l, x))
print('{:.1f}'.format(sum(r)))