A tube ticket for 1 trip costs 15 pounds, for 10 trips – 125 pounds, and for 60 trips – 440 pounds. A passenger plans to take n trips. Determine how many of each ticket type should be purchased to cover at least n trips at the lowest cost.
A single number n is given – the number of trips.
Output three integers representing the required number of tickets for 1, 10, and 60 trips.
Input #1
129
Output #1
0 1 2
Sign in to submit your solution and save your progress.