FizzBuzz for One Number
Apply the FizzBuzz rules to a single number.
Input format
One line with an integer N (at least 1).
Output format
Print FizzBuzz if N is divisible by 15, Fizz if divisible by 3, Buzz if divisible by 5, otherwise print N itself.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
3Expected output
FizzExample 2
Input
5Expected output
Buzz