#include using namespace std; int main() { int n,a,b,c,i; cin >> n; for (i = 1; i <= n; i++) { a = i % 3; b = i % 15; if (a == 0 && b != 0) { cout << "Fizz" << endl; } c = i % 5; if (c == 0 && b != 0) { cout << "Buzz" << endl; } if (b == 0) { cout << "FizzBuzz" << endl; } if (a != 0 && b != 0) { cout << i << endl; } } return 0; }