import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.math;
import std.regex;

void main() {
	auto N = readln.chomp.to!int;
	ulong r = readln.split.to!(ulong[]).sum;
	int count;
	while(true) {
		if(r % 2 != 0) {
			break;
		}
		r /= 2;
		count++;
	}
	writeln(count);
}
