for i in range(1,int(input())+1): c='' if i%3==0: c='Fizz' if i%5==0: c+='Buzz' print(c) if c!='' else print(i)