x = []
while True:
try:
n = int(input())
if n ==1:
a = int(input())
D = {1 : "Medium Wac" , 2 : "WChicken Nugget" ,\
3 : "Geez Burger" , \
4 : "ButtMilk Crispy Chicken" ,\
5 : "Plastic Toy" }
E = {1 : 4 , 2 : 8 , 3 : 7 , 4 : 6 , 5 : 3}
print(f"{D[a]} {E[a]}")
x.append(E[a])
elif n == 2:
a =int(input())
D = {1 : "German Fries" , 2 : "Durian Slices" ,\
3 : "WcFurry" , 4 : "Chocolate Sunday"}
E = {1 : 2 , 2 : 3 , 3 : 5 , 4 : 7}
print(f"{D[a]} {E[a]}")
x.append(E[a])
elif n == 0:
break
except EOFError:
break
print(f"Total: {sum(x)}")