It is Christmas time, and you are buying gifts for your friends! While planning, you have shortlisted the following gifts: candy canes at each, coffee mugs at each, and ugly sweaters at each. However, being a high school student, you have a budget to keep in mind. You can spend at most dollars.
You now need to check whether or not your planned gifts fall within your budget.
Constraints
Input Specification
The first line consists of a single integer, , representing the maximum amount you can spend.
The second line consists of three space-separated integers, , , and , representing the number of purchased candy canes, coffee mugs and ugly sweaters, respectively.
Output Specification
If your buying plan is within the budget, output Time to go shopping!
.
If you cannot afford all the gifts, output You cannot afford them all.
.
Sample Input 1
45
3 5 2
Sample Output 1
Time to go shopping!
Explanation of Sample 1
In this case, you purchased 3 candy canes, 5 coffee mugs and 2 ugly sweaters. Hence, the total cost of the gifts is $37, which is within your budget of $45.
Sample Input 2
33
6 2 5
Sample Output 2
You cannot afford them all.
Explanation of Sample 2
In this case, you purchased 6 candy canes, 2 coffee mugs and 5 ugly sweaters. Hence, the total cost of the gifts is $49, which is above your budget of $33.
Comments