You are given three integers N, A, and B. You have another integer X = 0. You can apply the following move (1-indexed) any number of times:
Find the minimum number of moves required so that the value of X becomes greater than or equal to N or print -1 if it is impossible to do so.
Input format
Output format
For each test case, print the minimum number of moves required so that the value of X becomes greater than or equal to N or print -1 otherwise.
Constraints
1≤T≤1051≤N,A,B≤109
The first test case
The second test case
The third test case