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