import java.util.*;

public class Main{
  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    }

    public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    }

    public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] num = new int[n]; num new int[n] n for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            num[i] = sc.nextInt();
        } {
            num[i] = sc.nextInt();
        } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc int count = 0; count 0 while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        } true {
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        } if(checkOdd(n, num)){
                break;
            } checkOdd(n, num) checkOdd n num {
                break;
            } break; for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                num[i] = num[i]/2;
            } {
                num[i] = num[i]/2;
            } num[i] = num[i]/2 num[i] num i num[i]/2 num[i] num i 2 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    } checkOdd {
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    } boolean result = false; result false for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if(a[i] % 2 != 0){
                result = true;
            }
        } {
            if(a[i] % 2 != 0){
                result = true;
            }
        } if(a[i] % 2 != 0){
                result = true;
            } a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
                result = true;
            } result = true result true return result; result int n n int[] a a public class Main{
  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    }

    public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    }
} public class Main{
  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    }

    public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] num = new int[n];

        for(int i = 0; i < n; i++){
            num[i] = sc.nextInt();
        }

        int count = 0;

        while(true){
            if(checkOdd(n, num)){
                break;
            }

            for(int i = 0; i < n; i++){
                num[i] = num[i]/2;
            }
            count++;
        }

        System.out.println(count);
    }

    public static boolean checkOdd(int n, int[] a){
        boolean result = false;
        for(int i = 0; i < n; i++){
            if(a[i] % 2 != 0){
                result = true;
            }
        }
        return result;
    }
}