#include #include #define length(x) ((#x ## s).length()) using namespace std::literals; int const one = length(x); int const three = length(xxx); int const five = length(xxxxx); int main() { int n; scanf("%d", &n); for (int i = one; i <= n; ++i) { if ((i % three < one) && (i % five < one)) { puts("FizzBuzz"); } else if (i % three < one) { puts("Fizz"); } else if (i % five < one) { puts("Buzz"); } else { printf("%d\n", i); } } }