import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    }
} Main public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    } main {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int i = s.nextInt(); i s.nextInt() s.nextInt s int n[] = new int[i]; n new int[i] i for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        } int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
            n[j] = s.nextInt();
        } {
            n[j] = s.nextInt();
        } n[j] = s.nextInt() n[j] n j s.nextInt() s.nextInt s int c = 0; c 0 while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        } true {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        } boolean f = false; f false for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            } int ni n {
                if ((ni % 2) != 0) {
                    f = true;
                }
            } {
                if ((ni % 2) != 0) {
                    f = true;
                }
            } if ((ni % 2) != 0) {
                    f = true;
                } (ni % 2) != 0 (ni % 2) ni 2 0 {
                    f = true;
                } f = true f true if (f) break; f break; for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            } int k = 0; int k = 0; k 0 k < i k i k++ k++ k {
                n[k] = n[k] / 2;
            } {
                n[k] = n[k] / 2;
            } n[k] = n[k] / 2 n[k] n k n[k] / 2 n[k] n k 2 c++ c System.out.println(c) System.out.println System.out System System.out c String args[] args public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        int n[] = new int[i];
        for (int j = 0; j < i; j++) {
            n[j] = s.nextInt();
        }
        int c = 0;
        while (true) {
            boolean f = false;
            for (int ni: n) {
                if ((ni % 2) != 0) {
                    f = true;
                }
            }
            if (f) break;
            for (int k = 0; k < i; k++) {
                n[k] = n[k] / 2;
            }
            c++;
        }
        System.out.println(c);
    }
}