import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int kosu = sc.nextInt(); kosu sc.nextInt() sc.nextInt sc int l[]  = new int[kosu]; l new int[kosu] kosu int m[]  = new int[kosu]; m new int[kosu] kosu boolean endFlg = false; endFlg false for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < kosu i kosu i++ i++ i {
            l[i] = sc.nextInt();
        } {
            l[i] = sc.nextInt();
        } l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc int count = 0; count 0 while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        } !endFlg endFlg {
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        } for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            } int i = 0; int i = 0; i 0 i < l.length i l.length l l.length i++ i++ i {
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            } {
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            } if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                } l[i]%2 == 0 l[i]%2 l[i] l i 2 0 {
                    m[i] = l[i]/2;
                } m[i] = l[i]/2 m[i] m i l[i]/2 l[i] l i 2 {
                    endFlg = true;
                    break;
                } endFlg = true endFlg true break; if(!endFlg){
                count++;
                l = m;
            } !endFlg endFlg {
                count++;
                l = m;
            } count++ count l = m l m System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int kosu = sc.nextInt();
        int l[]  = new int[kosu];
        int m[]  = new int[kosu];
        boolean endFlg = false;

        for (int i = 0; i < kosu; i++) {
            l[i] = sc.nextInt();
        }
        int count = 0;
        while(!endFlg){
            for (int i = 0; i < l.length; i++){
                if(l[i]%2 == 0){
                    m[i] = l[i]/2;
                }
                else{
                    endFlg = true;
                    break;
                }
            }
            if(!endFlg){
                count++;
                l = m;
            }
        }
        System.out.println(count);
    }
}
