#include #include using namespace std; int main(){ string s;cin>>s; reverse(s.begin(),s.end()); int mod = 15; int r = 1; int nya = 0; for(int i = 0; s.size() > i; i++){ nya = (nya +r*(s[i]-'0'))%mod; r = (r*4)%mod; } if(!(nya%15)){ cout << "FizzBuzz" << endl; }else if(!(nya % 3)){ cout << "Fizz" << endl; }else if(!(nya % 5)){ cout << "Buzz" << endl; }else{ reverse(s.begin(),s.end()); cout << s << endl; } }