Back to tasks
A square in a box
BeginnerPython for kids 路 Lesson 30: Contest tasks with conditions
Problem Statement
Read the side of a square tile, then the length and width of a rectangular box. Print TAK if the tile fits on the bottom of the box (the side isn't longer than either measurement), otherwise NIE. (TAK is Polish for yes, NIE for no.)
Input Format
Three whole numbers (1..1000): the tile's side, the box's length and width, 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
5 8 6
Output
TAK
Example 2
Input
7 8 6
Output
NIE