Back to tasks
A divisor
BeginnerPython for kids 路 Lesson 24: Divisibility - % in conditions
Problem Statement
Read two numbers a and b. Print TAK if b is a divisor of a (a divides by b with no remainder), otherwise NIE. (TAK is Polish for yes, NIE for no.)
Input Format
Two whole numbers a and b, each on its own line (1 <= a, b <= 1000).
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
12 3
Output
TAK
Example 2
Input
12 5
Output
NIE