import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int answer=0;
        for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int answer=0;
        for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int answer=0;
        for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        }
        System.out.println(answer);
    } main {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int answer=0;
        for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        }
        System.out.println(answer);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int answer=0; answer 0 for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        } {
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        } int buf =scn.nextInt(); buf scn.nextInt() scn.nextInt scn int cnt=0; cnt 0 while(buf%2==0){
                buf/=2;
                cnt++;
            } buf%2==0 buf%2 buf 2 0 {
                buf/=2;
                cnt++;
            } buf/=2 buf 2 cnt++ cnt if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            } i==0 i 0 {
            	answer=cnt;
            } answer=cnt answer cnt {
            	answer=Math.min(cnt,answer);
            } answer=Math.min(cnt,answer) answer Math.min(cnt,answer) Math.min Math cnt answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int answer=0;
        for(int i=0;i<n;i++){
            int buf =scn.nextInt();
            int cnt=0;
            while(buf%2==0){
                buf/=2;
                cnt++;
            }
          	if(i==0){
            	answer=cnt;
            }else{
            	answer=Math.min(cnt,answer);
            }
        }
        System.out.println(answer);
    }
}
