/* 1%3 = 1 4%3 = 1 16%3 = 1 64%3 = 1 ... (4^n)%3 = 1 ? 1%5 = 1 4%5 = 4 16%5 = 1 ... even: 1 odd : 4 */ void main(){ import std.stdio, std.string, std.conv, std.algorithm; auto n=readln.chomp.to!(char[]); reverse(n); int sum1=0, sum2=0; foreach(i, e; n){ int d=e-'0'; sum1+=d; int md=i&1 ? 4 : 1; sum2+=md*d; } bool fiz=(sum1%3==0); bool buz=(sum2%10==0 || sum2%10==5); if(fiz && buz){ writeln("FizzBuzz"); }else if(fiz){ writeln("Fizz"); }else if(buz){ writeln("Buzz"); }else{ reverse(n); writeln(n); } } void rd(T...)(ref T x){ import std.stdio, std.string, std.conv; auto l=readln.split; assert(l.length==x.length); foreach(i, ref e; x){ e=l[i].to!(typeof(e)); } }