#include #define show(x) cerr << #x << " = " << x << endl using namespace std; using ll = long long; template ostream& operator<<(ostream& os, const vector& v) { os << "sz:" << v.size() << "\n["; for (const auto& p : v) { os << p << ","; } os << "]\n"; return os; } template ostream& operator<<(ostream& os, const pair& p) { os << "(" << p.first << "," << p.second << ")"; return os; } constexpr ll MOD = (ll)1e9 + 7LL; template constexpr T INF = numeric_limits::max() / 64; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; auto S = s; int mod3 = 0; int mod5 = 0; reverse(s.begin(), s.end()); for (const char c : s) { mod3 = (mod3 + (c - '0') % 3) % 3; mod5 = (4 * mod5 + (c - '0') % 5) % 5; } if (mod3 == 0 and mod5 == 0) { cout << "FizzBuzz" << endl; } else if (mod3 == 0) { cout << "Fizz" << endl; } else if (mod5 == 0) { cout << "Buzz" << endl; } else { cout << S << endl; } return 0; }