#include <iostream>
using namespace std;
int main(){
  int N,A,cnt=1<<30;
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> A;
    int c=0;
    while(!(A%2)){A/=2;c++;}
    cnt=min(cnt,c);
  }
  cout << cnt; 
  return 0;
}