import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
      
        int min = 100000000;

        for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        }

        System.out.println(min);
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
      
        int min = 100000000;

        for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        }

        System.out.println(min);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
      
        int min = 100000000;

        for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        }

        System.out.println(min);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
      
        int min = 100000000;

        for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        }

        System.out.println(min);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int min = 100000000; min 100000000 for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        } int number list {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        } {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        } int count = 0; count 0 while(number % 2 == 0) {
                number /= 2;
                count++;
            } number % 2 == 0 number % 2 number 2 0 {
                number /= 2;
                count++;
            } number /= 2 number 2 count++ count if(min > count) {
                min = count;
            } min > count min count {
                min = count;
            } min = count min count System.out.println(min) System.out.println System.out System System.out min String args[] args
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
      
        int min = 100000000;

        for(int number : list) {
            int count = 0;

            while(number % 2 == 0) {
                number /= 2;
                count++;
            }

            if(min > count) {
                min = count;
            }
        }

        System.out.println(min);
    }
}