import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean flag = true;
        int count = 0;
        int N = sc.nextInt();
        int[] tmp = new int[N];
        for(int i = 0; i<N; i++) {
            tmp[i] = sc.nextInt();
        }
        while(true) {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

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

            if (flag == false) break;
            count++;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean flag = true;
        int count = 0;
        int N = sc.nextInt();
        int[] tmp = new int[N];
        for(int i = 0; i<N; i++) {
            tmp[i] = sc.nextInt();
        }
        while(true) {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

            if (flag == false) break;
            count++;
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        boolean flag = true;
        int count = 0;
        int N = sc.nextInt();
        int[] tmp = new int[N];
        for(int i = 0; i<N; i++) {
            tmp[i] = sc.nextInt();
        }
        while(true) {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

            if (flag == false) break;
            count++;
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean flag = true; flag true int count = 0; count 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] tmp = new int[N]; tmp new int[N] N for(int i = 0; i<N; i++) {
            tmp[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
            tmp[i] = sc.nextInt();
        } {
            tmp[i] = sc.nextInt();
        } tmp[i] = sc.nextInt() tmp[i] tmp i sc.nextInt() sc.nextInt sc while(true) {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

            if (flag == false) break;
            count++;
        } true {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

            if (flag == false) break;
            count++;
        } for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            } {
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            } if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                } tmp[i] % 2 != 0 tmp[i] % 2 tmp[i] tmp i 2 0 {
                    flag = false;
                    break;
                } flag = false flag false break; tmp[i] /= 2 tmp[i] tmp i 2 if (flag == false) break; flag == false flag false break; count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean flag = true;
        int count = 0;
        int N = sc.nextInt();
        int[] tmp = new int[N];
        for(int i = 0; i<N; i++) {
            tmp[i] = sc.nextInt();
        }
        while(true) {
            for(int i = 0; i<N; i++){
                if(tmp[i] % 2 != 0) {
                    flag = false;
                    break;
                }
                tmp[i] /= 2;
            }

            if (flag == false) break;
            count++;
        }
        System.out.println(count);
    }
}