ans=[] for i in range(1, int(input())+1): if i % 3 == 0 and i % 5 == 0: ans.append('FizzBuzz') elif i % 3 == 0: ans.append('Fizz') elif i % 5 == 0: ans.append('Buzz') else: ans.append(i) print('\n'.join(map(str,ans)))