n = gets.chomp.to_i a = 1;c = 0 while a < n a *= 2 c += 1 end puts c