fun main(){ val n = readLine()!!.toInt() var i = 1 var cnt = 0 while(i != n){ var m = n - i while(m > i){ m -= 1 } i += m cnt++ } println(cnt) }