AlgoBazaAlgoBaza
Back to tasks

A leap year

Beginner

Python for kids 路 Lesson 26: An if inside an if

Problem Statement

A year is a leap year when it divides by 4, but years divisible by 100 are leap years only when they also divide by 400. Read a year and print TAK or NIE. (TAK is Polish for yes, NIE for no.)

Input Format

One whole number - the year (1 <= year <= 3000).

Output Format

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

Examples
Example 1

Input

2024

Output

TAK
Example 2

Input

1900

Output

NIE
Example 3

Input

2000

Output

TAK