n = gets.to_i three = "d".ord - "a".ord five = "f".ord - "a".ord for i in ("b".ord - "a".ord )..n do if i % three == 0 and i % five == 0 then puts "FizzBuzz" elsif i % three == 0 puts "Fizz" elsif i % five == 0 puts "Buzz" else puts i end end