num = gets.to_f r = 0 while num > 1 num = (num /= 2) r += 1 end p r