n = gets.to_i b = 1 ans = 0 while n>b b *= 2 ans += 1 end puts ans