#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N,a,min;
	min=100000;
	cin>>N;
	for(int i = 0;i<N;i++){
	int counter =0;
	cin>>a;
		while(a%2==0){
			a /=2;
			counter++;
			}
		if(counter<min){
		min=counter;
		}
	}
	cout<<min<<endl;
}