import java.util.Scanner;

public class Main {
// 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    }
} import java.util.Scanner; Scanner java.util public class Main {
// 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    }
} 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        int ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    } 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 ans = 0; ans 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 (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        } true {
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        } boolean t = false; t false for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if(a[i] % 2 != 0) t = true;
            } {
                if(a[i] % 2 != 0) t = true;
            } if(a[i] % 2 != 0) t = true; a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 t = true t true if (t) break; t break; for (int i = 0; i < n; i++) {
                a[i] /= 2;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                a[i] /= 2;
            } {
                a[i] /= 2;
            } a[i] /= 2 a[i] a i 2 ++ans ans System.out.println(Integer.toString(ans)) System.out.println System.out System System.out Integer.toString(ans) Integer.toString Integer ans String[] args args public class Main {
// 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    }
} public class Main {
// 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    }
} Main
import java.util.Scanner;

public class Main {
// 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 ans = 0;
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }
        while (true){
            boolean t = false;
            for (int i = 0; i < n; i++) {
                if(a[i] % 2 != 0) t = true;
            }
            if (t) break;
            for (int i = 0; i < n; i++) {
                a[i] /= 2;
            }
            ++ans;
        }
        // 出力
        System.out.println(Integer.toString(ans));
    }
}
