import java.util.*; import java.lang.*; import java.io.*; class Ideone { public static void main (String[] args) throws java.lang.Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String X1 = br.readLine(); int X2 = Integer.parseInt(X1); for(int n=1;n<=X2;n++){ if(n % 3 == 0 ){ System.out.print("fizz"); } if(n % 5 == 0 ){ System.out.print("buzz"); } if((n % 3 != 0) && (n % 5 != 0)){ System.out.print(n); } System.out.print("\n"); } } }