#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,a = 1e9,b;
cin >> n;
for(int i = 0; i < n; i++){
   cin >> b;
   long long cnt = 0;
   while(b % 2 == 0){
       b /= 2;
       cnt++;
   }
   a = min(a,cnt);
}
cout << a << endl;
}