lib C fun getchar_unlocked : Int32 fun isspace(c : Int32) : Bool end fun read_int : Int32 ans = 0 f = 1 c = C.getchar_unlocked() while C.isspace(c) c = C.getchar_unlocked() end if c == 45 f = -1i64 c = C.getchar_unlocked() end while (48 .. 57).includes?(c) ans = (ans << 1) + (ans << 3) + (c ^ 48) c = C.getchar_unlocked() end return ans * f end puts Array(String).new(read_int) { |i| if i % 15 == 14 "FizzBuzz" elsif i % 5 == 4 "Buzz" elsif i % 3 == 2 "Fizz" else (i + 1).to_s end }.join("\n")