import java.util.Scanner; class Test { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int n = in.nextInt(); int num = 1; int counts = 0; while(true) { num *= 2; if(num > n) { break; } counts++; } int w = n - (num / 2); if(w != 0) { counts++; } System.out.println(counts); } }