class Calc0047 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @n = args.shift.first.to_i end def run k = @n.bit_length - 1 if @n == 1 << k k else k + 1 end end end puts Calc0047.new(STDIN.readlines).run if __FILE__ == $0