import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { new Main(); } public Main() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine().trim(); int n = Integer.parseInt(line); br.close(); for (int i = 1; i <= n; i++) { String s = ""; if (i % 3 == 0) { s += "Fizz"; } if (i % 5 == 0) { s += "Buzz"; } if (s.length() > 0) { System.out.println(s); } else { System.out.println(i); } } } }