#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; } bool hoge(string N, int mod) { int n = N.size(); int val = 0; for (int i = 0; i < n; i++) val = (val * 4 + (N[i] - '0')) % mod; return val % mod == 0; } int main() { string N; cin >> N; string ans = ""; if (hoge(N, 3)) ans += "Fizz"; if (hoge(N, 5)) ans += "Buzz"; if (ans == "") cout << N << endl; else cout << ans << endl; }