Numbers a and b are given. Solve in integers the \(ax+b=0\) equation. Print all solutions of this equation, if their number is finite, print the word NO, if there are no solutions, print the word INF, if there are infinitely many solutions.

a

b

NO

INF

1000 ms 256 Mb Rules for program design and list of errors in automatic problem checking