n = gets.to_i puts Math.log2(n).ceil