fruit = input()
day_of_week = input()
quantity = float(input())
price = 0
if day_of_week == "Monday" or "Tuesday" or "Wednesday" or "Thursday" or "Friday":
if fruit == "banana":
price = 2.5
elif fruit == "apple":
price = 1.2
elif fruit == "orange":
price = 0.85
elif fruit == "grapefruit":
price = 1.45
elif fruit == "kiwi":
price = 2.7
elif fruit == "pineapple":
price = 5.5
elif fruit == "grapes":
price = 3.85
if day_of_week == "Saturday" or "Sunday":
if fruit == "banana":
price = 2.7
elif fruit == "apple":
price = 1.25
elif fruit == "orange":
price = 0.9
elif fruit == "grapefruit":
price = 1.60
elif fruit == "kiwi":
price = 3.00
elif fruit == "pineapple":
price = 5.6
elif fruit == "grapes":
price = 4.2
if price == 0.00:
print("error")
sum = (f'{price * quantity:.2f}')
print(sum)
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}