import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) final int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc long[] a = new long[N]; a new long[N] N int lap = 0; lap 0 for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            a[i] = Long.parseLong(sc.next());
        } {
            a[i] = Long.parseLong(sc.next());
        } a[i] = Long.parseLong(sc.next()) a[i] a i Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc out.println(lap) out.println out lap out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int lap = 0;
        for (int i = 0; i < N; i++) {
            a[i] = Long.parseLong(sc.next());
        }
        
        Outer:
        while (true) {
            for (int i = 0; i < N; i++) {
                if (a[i] % 2 != 0) break Outer; 
            }
            for (int i = 0; i < N; i++) {
                a[i] /= 2;
            }
            lap++;
        }
        
        out.println(lap);
        
        out.flush();
    }
}