#fileencoding: utf-8 from __future__ import print_function def fizzbuzz(x): if x % 3 == 0 and x % 5 == 0: return "FizzBuzz" elif x % 3 == 0: return "Fizz" elif x % 5 == 0: return "Buzz" else: return x map(print, [fizzbuzz(i) for i in range(1, int(raw_input())+1)])