#include<iostream>

using namespace std;

int main(){
    int a,b;
    cin >>a;
    for(int i = 1 ; i <= a ; ++i)
    {
        if(i%3 == 0)
        {
            cout << "Fizz";
        }
        if(i%5 == 0)
        {
            cout << "Buzz";
        }
        if(i%3 != 0 && i%5 != 0)
        {
            cout << i;
        }
        cout << endl;
    
    }
    return 0;
}