Back to tasks
Divisible by 3?
BeginnerPython for kids 路 Lesson 24: Divisibility - % in conditions
Problem Statement
Read a number n. Print TAK if it divides by 3 with no remainder, otherwise NIE. (TAK is Polish for yes, NIE for no.)
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
12
Output
TAK
Example 2
Input
14
Output
NIE