for i in range(0, int(input())): print((i%3//2) * 'Fizz' + (i%5//4) * 'Buzz' or i+1)