#include <bits/stdc++.h>
using namespace std;

int one,three,five;

signed main(){
  one++;
  three++;three++;three++;
  five++;five++;five++;five++;five++;
  int n;cin>>n;
  for(int i=one;i<=n;i++){
    if(!(i%three))cout<<"Fizz";
    if(!(i%five))cout<<"Buzz";
    if(i%three&&i%five)cout<<i;
    cout<<endl;
  }
}