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

int main() {
  int n,j=1000000000;
  cin >> n;
  for (int i=0; i<n; i++) {
    int k=0,p;
    cin >> p;
    for (;; k++) {
      if (p%2==0) p/=2;
      else break;
    }
    if (j>k) j=k;
  }
  cout << j << endl;
}
