
As a tourist in Paris, you are told to always check the itemized bill (also called the check) that arrives at the end of a meal, the one listing what you ordered and the total price. Such bills are often handwritten, and the waiter adds the total up by hand. You do not want to pay more than your meal costs, so you protest whenever a mistake favors the restaurant. If the restaurant charges you less than it should, you pay without a word.
Write a program that decides whether to pay the total printed on the check or to protest about it.