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

void main() {
    auto N = readln.chomp.to!int;
    auto a = readln.split.to!(int[]);
    int cnt = 0;
    while (a.all!"a%2==0") {
        a[] /= 2;
        cnt++;
    }
    writeln(cnt);
}

