n = gets.to_i p = 1 count = 0 while p < n do p *= 2 count += 1 end puts count