import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int A[] = new int[N]; A new int[N] N int R; R boolean Rflg = false; Rflg false int count = 0; count 0 for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = Integer.parseInt(sc.next());
        } {
            A[i] = Integer.parseInt(sc.next());
        } A[i] = Integer.parseInt(sc.next()) A[i] A i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc while (Rflg == false) {
            for (int i = 0; i < N; i++) {
                R = A[i] % 2;
                if (R != 0) {
                    Rflg = true;
                    break;
                }
                A[i] = A[i] / 2;
                count++;
            }
        } Rflg == false Rflg false {
            for (int i = 0; i < N; i++) {
                R = A[i] % 2;
                if (R != 0) {
                    Rflg = true;
                    break;
                }
                A[i] = A[i] / 2;
                count++;
            }
        } for (int i = 0; i < N; i++) {
                R = A[i] % 2;
                if (R != 0) {
                    Rflg = true;
                    break;
                }
                A[i] = A[i] / 2;
                count++;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                R = A[i] % 2;
                if (R != 0) {
                    Rflg = true;
                    break;
                }
                A[i] = A[i] / 2;
                count++;
            } {
                R = A[i] % 2;
                if (R != 0) {
                    Rflg = true;
                    break;
                }
                A[i] = A[i] / 2;
                count++;
            } R = A[i] % 2 R A[i] % 2 A[i] A i 2 if (R != 0) {
                    Rflg = true;
                    break;
                } R != 0 R 0 {
                    Rflg = true;
                    break;
                } Rflg = true Rflg true break; A[i] = A[i] / 2 A[i] A i A[i] / 2 A[i] A i 2 count++ count PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.println(count / N) out.println out count / N count N sc.close() sc.close sc out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    }
} Main
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int A[] = new int[N];
        int R;
        boolean Rflg = false;
        int count = 0;

        for (int i = 0; i < N; i++) {
            A[i] = Integer.parseInt(sc.next());
        }

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

        PrintWriter out = new PrintWriter(System.out);
        out.println(count / N);

        sc.close();
        out.flush();
    }
}