import java.util.Scanner object biscuits { def main(args: Array[String]): Unit = { val sc = new Scanner(System.in) var n = sc.nextInt var count = 0 while(n != 1) { n = n / 2 + n % 2 count += 1 } println(count) } }