l=[0,28.9,32.7,45.6,78,35,86.2,27.8,43,56,65] a=list(map(int,input().split())) sum=0 for i in a: sum=sum+l[i]*i print("{:.1f}".format(sum))