Олимпиадный тренинг

Задача 26977. Get a chocolate bar


Задача

Темы:
Lyolik came to school and decided to refresh himself with chocolate. He went to the candy machine and was surprised to find that it had been put on protection against first-graders. Namely, in order to get a chocolate bar, it is necessary to solve the equation ax + b = c. The security program asks you to enter the integer part of the root of this equation, the word NO if there are no roots, or INFINITY if there are infinitely many roots. In order to buy chocolates every day, Lelik decided to write a program to solve the equation, but he could not. Can you? 
 
Input Format
The input is three real numbers separated by a space: a, b, and c. All modulo numbers do not exceed 109
 
Output format
Find the solution to the equation. The solution can be either an integer - the integer part of the root of the equation, the root of the equation, or the word NO, if there are no roots, or INFINITY, if there are infinitely many roots. 
 
Example
Enter Output
2 3 0 -2