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