The New CCC (Canadian Calorie Counting)

No attempts yetTime limit1sMemory limit128 MB

Problem

At Chip's Fast Food emporium the menu is very simple. Each food item is selected by entering a digit from 1 to 4. A customer picks exactly one choice from each of the four categories, in this order: burger, side order, drink, dessert.

Burgers

ChoiceItemCalories
1Cheeseburger461
2Fish Burger431
3Veggie Burger420
4no burger0

Side orders

ChoiceItemCalories
1Fries100
2Baked Potato57
3Chef Salad70
4no side order0

Drinks

ChoiceItemCalories
1Soft Drink130
2Orange Juice160
3Milk118
4no drink0

Desserts

ChoiceItemCalories
1Apple Pie167
2Sundae266
3Fruit Cup75
4no dessert0

Write a program that computes the total number of Calories in a meal.

Input

Four lines, one integer per line, in this order:

  1. the burger choice
  2. the side order choice
  3. the drink choice
  4. the dessert choice

Each value is an integer from 1 to 4.

Output

Print a single line in the exact form:

Your total Calorie count is T.

where T is the sum of the Calories of the four selected items.