function Main(input) { // the first line is assigned to input[0], the second line is assigned to input[1] similarly. input = input.split("\n"); input.forEach(function(N) { if(N == "") return; var ans = Math.ceil(Math.log(parseInt(N)) / Math.log(2)); console.log("%d", ans); }); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));