Problem B. 2. Pyramid
Input file name: standard input
Output file name: standard output
Time limit: 1 s
Memory limit: 1024 MB
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 (1a, b, c10000).
It is guaranteed that the given dimensions form valid triangles.

Output

Print TAIP or NE.

Example

standard inputstandard 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