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

int main() {
	int N;
	cin >> N;
	int ans = 1000000000;
	int x;
	for (int i=0; i<N; i++) {
		int cnt=0;
		cin >> x;
		while (x%2==0) {
			x/=2;
			cnt++;
		}
		if (cnt < ans) ans = cnt;
	}
	cout << ans << endl;
}