import java.io.BufferedReader;
import java.io.InputStreamReader;
//这段代码是0~100的二分查找,取值范围通过修改low与high的值(自己DIY)
import java.util.Scanner;
public class dichotomy {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int count = 0;
int low = 0;
int high = 100;
int mid = 0;
int guess = scanner.nextInt();
while(true) {
mid = (high + low)/2;
if(mid == guess){
count++;
break;
}
else if (guess < mid){
count++;
high = mid;
}
else {
count++;
low = mid;
}
}
scanner.close();
System.out.println(count);
}
}