#include <string>
#include <iostream>
using namespace std;
int main()
{
string str1,str6;
string str2( "Fizz" );
string str3( "Buzz" );
string str4( "Seven" );
string str5( "Eleven" );
int a=3, b=5, c=7, d=11;
for( int i=1; i<101; i++)
{
if(i==a && i==b)
{
if(i==c && i==d)
{
str6 = str2+str3+str4+str5;
a+=3, b+=5, c+=7, d+=11;
}
else
{
str6 = str2+str3;
a+=3, b+=5;
}
}
else if(i==a)
{
if(i==c && i==d)
{
str6 = str2+str4+str5;
a+=3, c+=7, d+=11;
}
else if(i==c)
{
str6 = str2+str4;
a+=3, c+=7;
}
else if(i==d)
{
str6 = str2+str5;
a+=3, d+=11;
}
else
{
str6 = str2;
a+=3;
}
}
else if(i==b)
{
if(i==c && i==d)
{
str6 = str3+str4+str5;
b+=5, c+=7, d+=11;
}
else if(i==d)
{
str6 = str3+str5;
b+=5, d+=11;
}
else
{
str6 = str3;
b+=5;
}
}
else if(i==c)
{
if(i==d)
{
str6 = str4+str5;
c+=7, d+=11;
}
else
{
str6 = str4;
c+=7;
}
}
else if(i==d)
{
str6 = str5;
d+=11;
}
if(str6.size()==0)
{
cout << i << " " << i << endl;
}
else
{
cout << i << " " << str6 << endl;
}
str6 = str1;
}
return 0;
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBzdHJpbmcgc3RyMSxzdHI2OwoJc3RyaW5nIHN0cjIoICJGaXp6IiApOwoJc3RyaW5nIHN0cjMoICJCdXp6IiApOwoJc3RyaW5nIHN0cjQoICJTZXZlbiIgKTsKCXN0cmluZyBzdHI1KCAiRWxldmVuIiApOwoJaW50IGE9MywgYj01LCBjPTcsIGQ9MTE7Cglmb3IoIGludCBpPTE7IGk8MTAxOyBpKyspCgl7CgkJaWYoaT09YSAmJiBpPT1iKQoJCXsKCQkJaWYoaT09YyAmJiBpPT1kKQoJCQl7CgkJCQlzdHI2ID0gc3R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