#include <bits/stdc++.h>
#define if(a) if(!(a))
using namespace std;
int main(void){
  int n,i=1;
  cin >> n;
  for (;i++<=n;){
    if(i%15) cout << "FizzBuzz" << endl;
    else if(i%3) cout << "Fizz" << endl;
    else if(i%3) cout << "Buzz" << endl;
    else cout << i << endl;
  }
}