import java.math.BigInteger; import java.util.Scanner; public class yuki { public static void main(String[] args) { BigInteger b = BigInteger.ONE; Scanner sc = new Scanner(System.in); BigInteger high = sc.nextBigInteger(); BigInteger three = BigInteger.valueOf('D' - 'A'); BigInteger five = BigInteger.valueOf('F' - 'A'); for (; b.compareTo(high) <= BigInteger.ZERO.intValue(); b = b.add(BigInteger.ONE)) { if (b.mod(three).equals(BigInteger.ZERO) && b.mod(five).equals(BigInteger.ZERO)) { System.out.println("FizzBuzz"); } else if (b.mod(three).equals(BigInteger.ZERO)) { System.out.println("Fizz"); } else if (b.mod(five).equals(BigInteger.ZERO)) { System.out.println("Buzz"); } else { System.out.println(b); } } } }