#include<cstdio>
#include<algorithm>
int main(){
    int n,a,k,ans=100;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        scanf("%d",&a);
        for(k=0;a%2==0;k++)a/=2;
        ans=std::min(ans,k);
    }
    printf("%d",ans);
    return 0;
}