← 返回 citadel 的题目列表FizzBuzz
类型:online_judge
Problem
Implement fizz_buzz(n) and process integers from 1 through n. Print one result per line:
Print FizzBuzz for multiples of both 3 and 5.
Print Fizz for multiples of 3 only.
Print Buzz for multiples of 5 only.
Otherwise, print the integer.
Input Format
Standard input contains one integer n.
Output Format
Print n lines, one result per line.
Constraints
0 <= n <= 100000
Example
Input:
5
Output:
1
2
Fizz
4
Buzz
Example
Input
0