import java.util.Scanner; public class FizzBuzz { public static void main(String[] args) { Scanner sc = new Scanner(System.in); if (sc.hasNextInt()) { int inputNumber = sc.nextInt(); for (int i = 1; i <= inputNumber; ++i) { String word = ""; if (i % 3 == 0) { word += "Fizz"; } if (i % 5 == 0) { word += "Buzz"; } if (word == "") { System.out.println(i); } else { System.out.println(word); } } } } }