import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
void main()
{
    auto n = lread();
    auto a = aryread();
    long cnt;
    while (func(a))
    {
        foreach (i; 0 .. n)
        {
            a[i] = a[i] / 2;
        }
        cnt += 1;
    }
    writeln(cnt);

}

auto func(long[] x)
{
    long cnt;
    foreach (i; 0 .. x.length)
    {
        if (x[i] % 2 == 0)
        {
            cnt += 1;
        }
    }
    if (cnt == x.length)
    {
        return true;
    }
    else
    {
        return false;
    }
}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
