N=int(input()) O='A'=='A' T=O+O+O F=T+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)