import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; //No.47 ポケットを叩くとビスケットが2倍 public class TwiceBiscuit { public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ //食べたいビスケットの枚数 int want; //ビスケットの枚数 int biscuit = 1; //カウンタ int counter = 0; //入力受け取り BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); want = Integer.parseInt(in.readLine()); while(true){ biscuit = biscuit * 2; if(biscuit > want){ break; }else{ } counter++; } System.out.println(++counter); } }