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

int main(){
  int N,A,count,x=10000000;
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>A;
    count=0;
    while(A%2==0){
      A/=2;
      count++;
    }
    if(count<x)
      x=count;
  }
  cout<<x<<endl;
}
  