biscuit = gets.to_i; my_biscuit = 1; count = 0 while true do if my_biscuit < biscuit my_biscuit *= 2 count += 1 else puts count break end end