N=int(input()) O='A'=='A' T=O+O+O F=F+O+O for i in range(O,N+O): S='' if not(i%T): S+='Fizz' if not(i%F): S+='Buzz' if S=='': print(i) else: print(S)