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

int main() {
    enum { zero, one, two, three, four, five };
    int n; cin >> n;
    for (int i = one; i <= n; i++) {
        if (i % three == zero && i % five == zero) puts("FizzBuzz");
        else if (i % three == zero) puts("Fizz");
        else if (i % five == zero) puts("Buzz");
        else cout << i << endl;
    }
}