# frozen_string_literal: true n = gets.chomp.to_i t = Math.log2(n).ceil p t