Mehdi, who is tired of coding, has gone to his childhood games. But because he doesn't…
- User
Mehdi, who is tired of coding, has gone to his childhood games. But because he doesn't know anyone to play these kinds of games with him, he has to change the rules of the game and play solitaire. For starters, he wants to play "Walnut, I'm Broke" solitaire. The game is such that Mehdi is in the distance n He is standing n centimeters from the wall and wants to reach the wall. For this, he can place his foot lengthwise in front of the previous foot and move forward, or place his foot transversely in front of his previous foot. The goal is for him to place his feet and move forward so that his foot touches the wall at the end. But Mehdi doesn't code anymore, so you have to help him figure out how to win this game. That is, tell him how many times to put his foot lengthwise and how many times to crosswise until finally the exact distance n He travels n centimeters and his foot touches the wall. Or tell him that it is impossible.
walnut
input In the only input line of three numbers n n and x x and y y is given to you, which represents the distance of Mahdi to the wall and the length and width of Mahdi's feet, respectively. 1 ≤ n , x , y ≤ 100
000 1≤n,x,y≤100,000
output The output consists of two numbers separated by a space. These numbers should respectively indicate the number of times that Mehdi should place his foot lengthwise and crosswise. There may be multiple answers for an entry. You can print any of them as you like. If there is no way that Mehdi touches the wall, print only a -1 number in the output.
Example Sample entry 1 10 2 3 Plain text Sample output 1 2 2 Plain text Pay attention that 0 5 is also a correct answer for example number 1; Because with 5 long strides, Mahdi travels 10 cm.
Sample entry 2 10 4 7 Plain text Sample output 2 -1 Plain text In this example, Mahdi can never move 10 cm by taking steps of 4 or 7 cm.
- Assistant