N = gets.to_i puts (0..).each do | index | if (2**index >= N) return index end end