import java.io.PrintWriter; import java.math.BigInteger; import java.util.Scanner; public class D { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { int n = ni(); int three = (int)Math.sqrt(BigInteger.TEN.intValue()); int five = BigInteger.TEN.divide(BigInteger.ONE.add(BigInteger.ONE)).intValue(); int start = BigInteger.ONE.intValue(); while(start <= n){ boolean isdt = BigInteger.valueOf(start).mod(BigInteger.valueOf(three)).equals(BigInteger.ZERO); boolean isdf = BigInteger.valueOf(start).mod(BigInteger.valueOf(five)).equals(BigInteger.ZERO); if(isdt && isdf){ out.println("FizzBuzz"); }else if(isdt){ out.println("Fizz"); }else if(isdf){ out.println("Buzz"); }else{ out.println(start); } start++; } } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } }