import java.util.Scanner; public class Main { public static void main(String[] p) { Scanner q = new Scanner(System.in); int n = q.nextInt(); int i = 0; int a = 1; while (a < n) { i++; if (a <= n / 2) { a *= 2; } else { a += (n - a) * 2; } } System.out.println(i); } }