import java.util.Scanner; public class Main{ static Scanner s=new Scanner(System.in); public static void main(String __[]){ input(); solve(); } private static void input(){ } private static void solve(){ int in=s.nextInt(), one=in/in, zero=one-one, three=one+one+one, five=three+one+one; for(int i=one; i<=in; i++){ String o = String.valueOf(i); if(i%three==zero){ System.out.print("Fizz"); o = ""; } if(i%five==zero){ System.out.print("Buzz"); o = ""; } System.out.println(o); } } }