EasyRating 900
Splitting the Bill
Two friends share a bill equally, except item k (counted from 0) that one friend didn't eat. The other friend charged b. Print Bon Appetit if b is fair, otherwise print how much should be refunded.
Input
n and k, then n prices, then b.
Output
Bon Appetit or a number.
Sample 1
Input
4 1 3 10 2 9 12
Output
5
Sample 2
Input
4 1 3 10 2 9 7
Output
Bon Appetit
Output appears here