Back to tasks
The roller coaster
BeginnerPython for kids 路 Lesson 26: An if inside an if
Problem Statement
You can ride the roller coaster from 140 cm, but people under 10 only with an adult. Read the height, the age and 1 if there's an adult with them (0 if not). Print TAK or NIE. (TAK is Polish for yes, NIE for no.)
Input Format
Three whole numbers: the height (50..200), the age (1..100) and the adult (0 or 1), each on its own line.
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
150 12 0
Output
TAK
Example 2
Input
145 8 0
Output
NIE
Example 3
Input
145 8 1
Output
TAK