import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int count=0; //nが2の累乗かどうかで判定(trueで2の累乗、falseなら違う) boolean checkNum=true; int num=n; while(num>1){ if(num%2==1){ checkNum=false; break; } num/=2; } while(n>1){ n/=2; count++; } if(checkNum){ System.out.println(count); }else{ System.out.println(count+1); } } }