class DoubleBiscuits attr_reader :n def initialize(n: 0) @n = n end def datainput begin @n = Integer(gets.chomp) rescue end end def pocket(number_biscuits) cnt = 0 loop do break if number_biscuits <= 2**cnt cnt += 1 end return cnt end def dataoutput puts pocket(@n) end def run datainput dataoutput end end if $0 == __FILE__ DoubleBiscuits.new.run end