The nutrition of a schoolchild, with proper organization, should provide the content of proteins, fats and carbohydrates in a ratio of 10%: 30%: 60% (an error of +/- 1% is allowed). The children's camp is compiling a menu consisting of
N
different products. For each product, the energy value in proteins (
P
), fats (
F
) and carbohydrates (
C
), as well as the amount of each type of product in menu(
K
).
Determine if the menu is balanced or not.
Input
The program receives several lines as input. The first line contains a natural number
N
(N <= 100) the number of different products. Each of the following
N
lines contains 4 numbers:
Pi
,
Fi
,
Ci
and
Ki
. All numbers are real, do not exceed 10
3.
Imprint
Print
YES
if the menu is balanced, and
NO
otherwise.
Examples
# |
Input |
Output |
1 |
3
0 1 1 2
1 2 7 1
3 7 13 1
| YES |