#include #include #include #include #include using namespace std; int main() { string s; cin >> s; int t = 0, f = 0; for (int i = 0; i < s.size(); ++i) { const int x = s[i] - '0'; t += x; f += i & 1 ? x : -x; } t %= 3; f %= 5; if (t == 0 || f == 0) { if (t == 0) cout << "Fizz"; if (f == 0) cout << "Buzz"; } else { cout << s; } cout << endl; }