def calc(result) (1..).find { |i| result <= 2 ** i } end puts calc(gets.to_i)