N = int(raw_input()) for i in range(1,N+1): S = '' if i % 3 == 0: S += "Fizz" if i % 5 == 0: S += "Buzz" print S if S else i