Tired of always wondering how many more Pokémon you need to catch to get those high-tier evolutions? Wonder no more! Now you will write a complete program or function to calculate it for you!
As input, your program will receive a list of the costs in candy to evolve a Pokémon to the next tier. (This list may be separated by any delimiter of your choosing, or as function arguments). Your program will then return or print the number of Pokémon that must be caught, including the one that will be evolved, to evolve through all the tiers given.
How do you calculate this? Like so:
1. Add up all the candy costs:
12 + 50 = 62
2. Subtract 3 candies from the total, this being from the one Pokémon you keep for evolving:
62 - 3 = 59
3. Divide this number by 4 (3 for catching, 1 for giving it to the Professor), always taking the
ceil() of the result:
ceil(59/4) = 15
4. Finally, add 1 to this total to get the total number of Pokémon you must catch, 16!
Input -> Output:
 -> 2  -> 13 [12, 50] -> 16 [25, 100] -> 32 [19, 35, 5, 200] -> 65
The app has already taken up most of the space on your phone, so your program needs to be as short as possible. The complete program or function with the smallest byte count will be accepted in two weeks! (with any ties being settled by the earliest submitted entry!)