#P100029. 【bedwar】买东西
【bedwar】买东西
Background
Many people know,xiaosi4081 is a 60 star player of hypixel bedwar.Today,he opening the bedwar and get some trouble.
Description
xiaosi4081 having piece of iron,and piece of gold now.He want buy the tools,the iron armor and the iron sword.
The tools need 40 piece of iron but you can buy it only one time,the iron armor need 12 piece of gold but you can buy it only one time,the iron sword need 7 piece of gold and you can buy it many time.
Question:How many things can he buy?
PS:if you have 12 gold,buy iron armor first.
Input
Input a total of one line,There are two numberand.
Output
Output a total of one line,There are three number,mean successively:how many tools can buy,how many iron armors can buy,how many iron swords can buy.
样例输入
120 500
Sample
1 1 69
Limitation