#include <iostream>
#include <string>
#include <algorithm>
#define FIZZBUZZ_FACTOR 15
class fizzbuzz {
public:
static void go() {
int cur = 0;
for (int i = 1; i < 101; i++) {
if (cur < FIZZBUZZ_FACTOR) {
if (answers[cur].empty()) {
std::cout<<i<<std::endl;
cur++;
}
else {
std::cout<<answers[cur++]<<std::endl;
}
}
if (cur == FIZZBUZZ_FACTOR) {
cur = 0;
}
}
}
private:
static std::string answers[FIZZBUZZ_FACTOR];
};
std::string fizzbuzz::answers[FIZZBUZZ_FACTOR] =
{
"", "", "Fizz", "", "Buzz",
"Fizz", "", "", "Fizz", "Buzz",
"", "Fizz", "", "", "FizzBuzz"
};
int main() {
fizzbuzz::go();
}