#include <iostream>

int main() {
    int input; 
    std::cout << "Enter a number (0 to quit): ";
    std::cin >> input;
    while (input > 0) {
        // Evaluate fizz and buzz or fizzbuzz against modulo operator (if return is 0 it divides the val totally and is ergo a multiple)
        if (input % 15 == 0) {
            std::cout << "FizzBuzz" << std::endl;
        } else if (input % 3 == 0) {
            std::cout << "Fizz" << std::endl;
        } else if (input % 5 == 0) {
            std::cout << "Buzz" << std::endl;
        } else {
            std::cout << input << std::endl;
        }
        std::cout << "Enter a number (0 to quit): ";
        std::cin >> input;
    }
    return 0;
}
