import java.util.*; class y9002 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); for (int i=1; i<=l; i++) { System.out.println(i%15>0?i%5>0?i%3>0?i:"Fizz":"Buzz":"FizzBuzz"); } } }