#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n, x;
	
	scanf("%d", &n);
	int ans = 64;
	while (n--) {
		scanf("%d", &x);
		int tmp = 0;
		while (x % 2 == 0) {
			tmp++;
			x /= 2;
		} 
		ans = min(ans, tmp);
	}
	printf("%d\n", ans);
}