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

int main() {
  int n,ans=100;
  cin >> n;
  
  for(;n--;) {
    int a,s=0;
    cin >>a;
    while(a%2 == 0) {
      a /=2;    
      s++;
    }
    if(s < ans) ans = s;
  }
  cout << ans <<endl;
}
  