#Call_cost
city=input()
time=float(input())
if city=='Екатерибург':
    print(313.15*time)
elif city=='Омск':
    print(381.18*time)
elif city=='Воронеж':
    print(473.13*time)
elif city=='Ярославль':
    print(485.11*time)
