#include using namespace std; void solve1() { cout << "Hello World!" << endl; } void solve2(stringstream& ss2, stringstream& ss3) { random_device rnd; if (rnd() & 1) { int n; ss3 >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0 && i % 5 == 0) { cout << "FizzBuzz" << endl; } else if (i % 3 == 0) { cout << "Fizz" << endl; } else if (i % 5 == 0) { cout << "Buzz" << endl; } else { cout << i << endl; } } } else { int n; ss2 >> n; cout << n * (n + 1) / 2 << endl; } } int main() { string input = ""; stringstream ss2, ss3, ss4, ss5, ss6; char c; while ((c = getchar()) != EOF) { input += c; ss2 << c; ss3 << c; ss4 << c; ss5 << c; ss6 << c; } if (input.empty()) { solve1(); } else if (input.size() < 4) { solve2(ss2, ss3); } }