There are four triangular wooden sheets of corresponding dimensions in a warehouse.
Determine whether it is possible to form a triangular pyramid from these sheets.
The sheets cannot be cut, and no edges may stick out in the pyramid.
Input
Four lines with natural numbers a, b, c (1 ≤ a, b, c ≤ 10000).
It is guaranteed that the given dimensions form valid triangles.
Output
Print TAIP or NE.
Example
standard input | standard output |
---|
10 12 15
15 20 14
10 14 17
17 12 20
| TAIP
|
2 2 2
3 3 3
2 2 2
5 5 5
| NE
|