#include #include void solve() { std::string s; std::cin >> s; int m3 = 0, m5 = 0; for (char c : s) { int d = (c - '0'); (m3 = m3 * 4 + d) %= 3; (m5 = m5 * 4 + d) %= 5; } if (m3 == 0 || m5 == 0) { if (m3 == 0) std::cout << "Fizz"; if (m5 == 0) std::cout << "Buzz"; } else { std::cout << s; } std::cout << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }