Back to tasks
Pif-Paf
BeginnerPython for kids 路 Lesson 24: Divisibility - % in conditions
Problem Statement
Read a number n (1 or more). Print PifPaf if it divides by 3 and by 5, Pif if only by 3, Paf if only by 5, otherwise the number itself.
Input Format
One whole number n (1 <= n <= 1000).
Output Format
PifPaf, Pif, Paf or the number.
Examples
Example 1
Input
30
Output
PifPaf
Example 2
Input
9
Output
Pif
Example 3
Input
10
Output
Paf
Example 4
Input
7
Output
7