#include "bits/stdc++.h" #define ALL(a) (a).begin(),(a).end() #define SORT(c) sort((c).begin(),(c).end()) #define DESCSORT(c) sort(c.begin(), c.end(), greater()) using namespace std; using LL = long long int; using LD = long double; using pii = pair; using pll = pair; using pdd = pair; using vi = vector; using vvi = vector; using vvvi = vector; using vl = vector; using vvl = vector; using vvvl = vector; using vd = vector; using vvd = vector; using vs = vector; using vb = vector; using vvb = vector; int gcd(int x, int y) { return y ? gcd(y, x % y) : x; } LL gcd(LL x, LL y) { return y ? gcd(y, x % y) : x; } int i, a, b, zero; int main() { int n; cin >> n; i++; a++; a++; a++; b++; b++; b++; b++; b++; for (;i <= n;i++) { if (i % a == zero && i % b == zero) { cout << "FizzBuzz" << endl; } else if (i % a == zero) { cout << "Fizz" << endl; } else if (i % b == zero) { cout << "Buzz" << endl; } else { cout << i << endl; } } }