import java.util.Scanner; public class Pract5 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); int i = Integer.parseInt(n); for(int j=1; j<=i; j++) { if(j%3==0){ if(j%5==0){ System.out.println("FizzBuzz"); } else { System.out.println("Fizz"); } }else if(j%5==0){ System.out.println("Buzz"); }else{ System.out.println(j); } } } }