fun main(args : Array) { val aLst = (readLine() ?: "").split(" ").map{ it.toInt() } aLst.map { when { it % 3 == 0 && it % 5 == 0 -> "FizzBuzz" it % 3 == 0 -> "Fizz" it % 5 == 0 -> "Buzz" else -> it.toString() } } .joinToString("") .let { println(it.length) } }