import java.util.Scanner; public class Main_yukicoder47 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ret = 0; boolean flag = false; while (n / 2 != 0) { if (n % 2 != 0) { flag = true;; } ret++; n /= 2; } System.out.println(ret + (flag ? 1 : 0)); sc.close(); } }