kotlin read input as int

JavaScript
readLine()!!.toInt()
Source

Also in JavaScript: