403789: GYM101306 B Chocolate
Description
It's finally dessert time! You have k bars of chocolate of different brands: Twix, Galaxy, Mars, MilkyWay, KitKat, etc... You also have n humans and m Martians to feed.
Each living creature will be satisfied with a single bar of chocolate. However, Martians refuse to eat Mars (something about cannibalism?).
How many extra bars, if any, do you need to buy to satisfy everyone?
InputThe first line of the input consists of 3 space-separated integers, k, n, and m (1 ≤ k, n, m ≤ 105).
Each of the next k lines contains a string. These represent the brands of chocolate bars you initially have, in no particular order. Each string consists of upper-case and lower-case English letters, and contains no more than 10 characters.
OutputPrint on a single line the number of extra bars you need to buy to satisfy everyone.
ExamplesInput5 4 3Output
Twix
Galaxy
Galaxy
Mars
MilkyWay
2Input
3 1 3Output
Mars
Mars
Mars
3