#include <bits/stdc++.h>
using namespace std;
int main(){
  int n; cin >> n;
  int r = 50;
  while(n--){
    int k = 0, x; cin >> x;
    while(x%2 == 0) x /= 2, k++;
    r = min(r, k);
  }
  cout << r << endl;
  return 0;
}