import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

int count2(int n) {
    int ret = 0;
    while (n > 0 && n % 2 == 0) {
        n /= 2;
        ret++;
    }
    return ret;
}

void main() {
    readint;
    auto a = readints;
    auto b = a.map!count2;

    int ans = b.reduce!((a, b) => min(a, b));
    writeln(ans);
}
