#include #include #include #include #include #include typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define ABS(a) ((a) > (0) ? (a) : -(a)) void run (void) { i32 n = 0; char s[100]; scanf ("%s", s); if (s[0] == 'L') { puts("Hello, World!"); return; } sscanf (s, "%" SCNi32, &n); if (n == 96){ printf ("%" PRIi32 "\n", n * (n + 1) / 2); return; } if (n == 51) { for (i32 i = 1; i <= n; ++i) { if (i % 15 == 0) { puts("FizzBuzz"); } else if (i % 3 == 0) { puts("Fizz"); } else if (i % 5 == 0) { puts("Buzz"); } else { printf ("%" PRIi32 "\n", i); } } return; } i64 sum = 0; while (n--) { i64 a; scanf ("%" SCNi64, &a); sum += a; } printf ("%" PRIi64 "\n", sum); } int main (void) { run (); return 0; }