n = gets.to_i x = 0 sum = 1 while sum < n sum = sum * 2 x += 1 end puts x