In the class clap game, students count numbers, but: • If the number is divisible by both 3 and 5, say FizzBuzz • If it is divisible only by 3, say Fizz • If it is divisible only by 5, say Buzz • Otherwise, just say the number
Given a number n, print what the student should say.
Input Format A single integer n.
Output Format Print FizzBuzz, Fizz, Buzz or the number itself.
Constraints • 1 ≤ n ≤ 10^6
Examples
Example 1
Input
15
Output
FizzBuzz
Explanation 15 is divisible by both 3 and 5.
Example 2
Input
9
Output
Fizz
Explanation 9 is divisible by 3 only.
Example 3
Input
10
Output
Buzz
Explanation 10 is divisible by 5 only.
Example 4
Input
7
Output
7
Explanation 7 is not divisible by 3 or 5, so we say 7.
Acceptance—
Accepted0
Submissions0
Auto-save
SavedLn 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
FizzBuzz
No results yet
Run your code to test it against the sample cases.