import java.util.Scanner; public class FizzBuzz{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int n3, n5; n3 = 1; n5 = 1; for(int i=1;i<=n;i++){ if(n3==3 && n5!=5){ System.out.println("Fizz"); n3=1; n5++; }else if(n5==5 && n3!=3){ System.out.println("Buzz"); n5=1; n3++; }else if(n5==5&&n3==3){ System.out.println("FizzBuzz"); n5=1; n3=1; }else{ System.out.println(i); n3++; n5++; } } } }