import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] s = scanner.nextLine().split(" "); s scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int m = Integer.MAX_VALUE; m Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        } {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        } int a = Integer.parseInt(s[i]); a Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i int b = 0; b 0 while (a % 2 == 0) {
                b++;
                a /= 2;
            } a % 2 == 0 a % 2 a 2 0 {
                b++;
                a /= 2;
            } b++ b a /= 2 a 2 if (b < m) {
                m = b;
            } b < m b m {
                m = b;
            } m = b m b if (b == 0) {
                break;
            } b == 0 b 0 {
                break;
            } break; System.out.println(m) System.out.println System.out System System.out m scanner.close() scanner.close scanner String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int m = Integer.MAX_VALUE;
        for (int i = 0; i < s.length; i++) {
            int a = Integer.parseInt(s[i]);
            int b = 0;
            while (a % 2 == 0) {
                b++;
                a /= 2;
            }
            if (b < m) {
                m = b;
            }
            if (b == 0) {
                break;
            }
        }

        System.out.println(m);
        scanner.close();
    }
}
