Two old pals, Cardanieux and Ferrarineux, love mathematical competitions: one of them emails the other a mathematical problem, with week to solve it. If the friend fails to cope with the problem in a week, he loses.
Ferrarineux came up with yet another problem and has already sent it to his friend. Cardanieux has just read the new challenge --- he's got a big pile of cubic equations of the shape ax3+bx2+cx+d=0, and the challenge is to multiply all this polynomials and find an integer, such that it is root of the largest multiplicity of the product. Cardanieux is very worried: he has lost three times in a row. This time, he just cannot afford to lose. He is asking you to write a program which will find a solution to the challenge, so that he can disappoint his friend with a lighting-fast correct answer.
The first line of the input file contains a single integer n --- the number of the equations (1≤n≤105). It is followed by n lines, with each ith line containing four integers a_i, b_i, c_i and d_i, which are all non-zero --- the coefficients of the ith equation a_ix3+b_ix2+c_ix+d_i=0 (0≤∣a_i∣,∣b_i∣,∣c_i∣,∣d_i∣≤109).
It is guaranteed that all numbers a_i are non-zero.
If none of the equations has an integer root, print a single line NO. Otherwise, in the first line of the input file, print the YES. In the second line, print two space-separated integers --- the first one is the root of the largest multiplicity of the product of these equations, and the second one is the multiplicity.
If there are several solutions, print any of them.
In the first example the product of the polynomials equals
\begin{equation\*} (x^3 + 3x^2 + 3x + 1) \cdot (2 x^3 + 2 x^2) = 2 x^2 (x + 1)^4 \end{equation\*}
The number 0 is a root of multiplicity 2 and the number -1 is a root of multiplicity 4.
In the second example there are no integer roots.