#include <string>
#include <iostream>
using namespace std;
int main()
{
string str1,str4;
string str2( "Fizz" );
string str3( "Buzz" );
int a=3, b=5;
for( int i=1; i<101; i++)
{
if(i==a && i==b)
{
str4 = str2+str3;
a+=3, b+=5;
}
else if(i==a)
{
str4 = str2;
a+=3;
}
else if(i==b)
{
str4 = str3;
b+=5;
}
if(str4.size()==0)
{
cout << i << " " << i << endl;
}
else
{
cout << i << " " << str4 << endl;
}
str4 = str1;
}
return 0;
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBzdHJpbmcgc3RyMSxzdHI0OwoJc3RyaW5nIHN0cjIoICJGaXp6IiApOwoJc3RyaW5nIHN0cjMoICJCdXp6IiApOwoJaW50IGE9MywgYj01OwoJZm9yKCBpbnQgaT0xOyBpPDEwMTsgaSsrKQoJewoJCWlmKGk9PWEgJiYgaT09YikKCQl7CgkJCXN0cjQgPSBzdHIyK3N0cjM7CgkJCWErPTMsIGIrPTU7CgkJfQoJCWVsc2UgaWYoaT09YSkKCQl7CgkJCXN0cjQgPSBzdHIyOwoJCQlhKz0zOwoJCX0KCQllbHNlIGlmKGk9PWIpCgkJewoJCQlzdHI0ID0gc3RyMzsKCQkJYis9NTsKCQl9CgkJaWYoc3RyNC5zaXplKCk9PTApCgkJewoJCQljb3V0IDw8IGkgPDwgIuOAgCIgPDwgaSA8PCBlbmRsOwoJCX0KCQllbHNlCgkJewoJCQljb3V0IDw8IGkgPDwgIuOAgCIgPDwgc3RyNCA8PCBlbmRsOwoJCX0KCQlzdHI0ID0gc3RyMTsKCX0KCXJldHVybiAwOwp9