#include #include #include #include #include #include #include #include #include // complex a(1.2 , 2.3);// real(): 1.2, imag()2.3 using namespace std; #define MOD 1000000007 #define ll long long #define ld long double #define FOR(i,a,b) for(ll i=(ll)a;i<(ll)b;i++) #define rep(i,n) FOR(i,0,n) #define pb push_back #define mp make_pair #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() #define rmsame(a) sort(all(a)),a.erase(unique(all(a)), a.end()) #define rmvector(a,b) rep(i,a.size())rep(j,b.size())if(a[i]==b[j]){a.erase(a.begin()+i);i--;break;} template bool exist(vector vec, X item){return find(all(vec), item)!=vec.end();} int main(){ cin.tie(0); ios::sync_with_stdio(false); string str; cin >> str; ll ans = 0; rep(i,str.size()){ ll keta = str.size()-1-i; ans += pow(4,keta)*(str[i]-'0'); } string ret = ""; if((ans%3)==0)ret+="Fizz"; if((ans%5)==0)ret+="Buzz"; if(ret=="")cout << ans << endl; else cout << ret<