Nova Poshta
In the last minutes of the working day, a rush order for delivery of five oversized cargo items was received at the branch of Nova Poshta. There are only two trucks left in the branch: the first one has a load capacity of , and the second one has a load capacity of . The driver of the first truck is called Vasyl, and the driver of the second truck is called Petro.
Determine how to distribute the cargo between the trucks to fulfill the order.
Input
The first line contains five integers , , , , () — the weights of the cargo items in tons.
The second line contains two integers and () — the load capacities of Vasyl's and Petro's trucks, respectively.
Output
If the order cannot be fulfilled, print «They can not do it!
».
If both Vasyl and Petro can fulfill the order on their own, print «They both can do it!
».
If the order can be fulfilled by one truck only, but only one of the trucks has sufficient load capacity, print who should do it: «Vasyl can do it!
» or «Petro can do it!
».
If the order can be fulfilled but both trucks are needed, print any possible distribution of cargo between the trucks in the following format:
Print «
They need to work together!
» on the first line.On the second line, print the name «
Vasyl
», followed by a colon, space, and the numbers of the cargo items that need to be loaded onto the first truck.On the third line, print the name «
Petro
», followed by a colon, space, and the numbers of the cargo items that need to be loaded onto the second truck.
The numbers of the cargo items can be printed in any order.