#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int sth=100;
	while(n--)
	{
		int x;
		cin>>x;
		int cnt=0;
		while(x%2==0)
		{
			x/=2;
			cnt++;
		}
		sth=min(sth,cnt);
	}
	cout<<sth<<endl;
	return 0;
}