fun main(args: Array) { val n = readLine()!!.toInt() for (i in 1..n) { println(judge(i)) } } fun judge(n: Int): String { val r: String if (n % 15 == 0){r = "FizzBuzz"} else if (n % 5 == 0){r = "Buzz" } else if (n % 3 == 0){r = "Fizz" } else {r = "$n" } return r }