import java.util.* fun main(args: Array) { val sc = Scanner(System.`in`) var num = Integer.parseInt(sc.next()) var count:Int = 0 do { num = (num+1) /2 count++ } while (num > 1) println(count) }