#include using namespace std; template T gcd(T x, T y) { if (y == 0) return x; return gcd(y, x % y); } template T lcm(T x, T y) { if (x == 0 || y == 0) return 0; return x / gcd(x, y) * y; } int main() { int N; while (cin >> N) { long long l = 0; string s = to_string(N); long n = s.size(); for (int i = 0; i < n; i++) { l += N % 10 * pow(4, i); N /= 10; } if (l % 15 == 0) cout << "FizzBuzz" << endl; else if (l % 5 == 0) cout << "Buzz" << endl; else if (l % 3 == 0) cout << "Fizz" << endl; else cout << s << endl; } }