#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Ma_PI 3.141592653589793 #define eps 0.00000001 #define LONG_INF 3000000000000000000 #define GOLD 1.61803398874989484820458 #define MAX_MOD 1000000007 #define REP(i,n) for(long long i = 0;i < n;++i) #define seg_size 524288 int main(){ string s; cin >> s; int moding[2] = {}; int multi[2] = { 1,1 }; for (int i = s.length()-1;i >= 0;i--) { moding[0] += (s[i] - '0') * multi[0]; moding[1] += (s[i] - '0') * multi[1]; moding[0] %= 3; moding[1] %= 5; multi[0] *= 4; multi[1] *= 4; multi[0] %= 3; multi[1] %= 5; } int cnt = 0; if (moding[0] == 0) { cout << "Fizz"; cnt = 1; } if (moding[1] == 0) { cout << "Buzz"; cnt = 1; } if (cnt == 0) { cout << s << endl; return 0; } cout << endl; return 0; }