AlgoBazaAlgoBaza
Back to tasks

A lucky number

Beginner

Python for kids 路 Lesson 25: and, or, not - joining conditions

Problem Statement

Bajtek says a number is lucky when it divides by 3 or ends in 7. Read a number n (0 or more) and print TAK or NIE. (TAK is Polish for yes, NIE for no.)

Input Format

One whole number n (0 <= n <= 1000).

Output Format

TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).

Examples
Example 1

Input

17

Output

TAK
Example 2

Input

9

Output

TAK
Example 3

Input

10

Output

NIE