Inequality ax ≤ b
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
For given two integers a and b find the smallest and biggest integer solution of inequality ax ≤ b.
Input
Two integers a and b, no more than 1000 by absolute value.
Output
If the inequality ax ≤ b has no solutions, print no solution.
IF any real value is a solution to inequality ax ≤ b, print all.
Otherwise print in one line the smallest and the biggest integer solution of inequality ax ≤ b. If the minimum integer solution does not exist, print -INF. If the maximum integer solution does not exist, print INF.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 17%