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