fun main() { val n_num = readLine()!!.toInt(); val arr = Array(n_num) { readLine()!!.toLong() } arr.sort() var now = -3L var cnt = 1 for (i in arr.indices) { val ai : Long = arr[i] if (now + 1 < ai) { now = ai } else { now = ai cnt++ } } println(cnt) }