Back to tasks
Can a triangle be built?
BeginnerPython for kids 路 Lesson 25: and, or, not - joining conditions
Problem Statement
A triangle can be built from three sticks of lengths a, b and c when any two together are longer than the third. Read a, b and c and print TAK or NIE. (TAK is Polish for yes, NIE for no.)
Input Format
Three whole numbers a, b and c, each on its own line (1 <= a, b, c <= 1000).
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
3 4 5
Output
TAK
Example 2
Input
1 2 3
Output
NIE