x=sum(sorted(map(int,input().split()))[1:5])*25 print(str(x)[:-2]+"."+str(x)[-2:])