total = 0
while True:
a = int(input())
#套餐
if (a == 1):
b = int(input())
if (b == 1):
print(f"Medium Wac 4")
total += 4
elif (b == 2):
print(f"WChicken Nugget 8")
total += 8
elif (b == 3):
print(f"Geez Burger 7")
total += 7
elif (b == 4):
print("ButtMilk Crispy Chicken 6")
total += 6
elif (b == 5):
print("Plastic Toy 3")
total += 3
elif (a == 2):
b = int(input())
if (b == 1):
print("German Fries 2")
total += 2
elif (b == 2):
print("Durian Slices 3")
total += 3
elif (b == 3):
print("WcFurry 5")
total += 5
elif (b == 4):
print("Chocolate Sunday 7")
total += 7
if (a == 0):
break
print(f"Total: {total}")