import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);

        int n = stdin.nextInt();
        int[] a = new int[n];
        int count = 0;
        boolean existOdd = false;

        for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt();

        while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        }

        System.out.println(count - 1);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);

        int n = stdin.nextInt();
        int[] a = new int[n];
        int count = 0;
        boolean existOdd = false;

        for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt();

        while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        }

        System.out.println(count - 1);
    }
} Main public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);

        int n = stdin.nextInt();
        int[] a = new int[n];
        int count = 0;
        boolean existOdd = false;

        for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt();

        while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        }

        System.out.println(count - 1);
    } main {
        Scanner stdin = new Scanner(System.in);

        int n = stdin.nextInt();
        int[] a = new int[n];
        int count = 0;
        boolean existOdd = false;

        for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt();

        while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        }

        System.out.println(count - 1);
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int[] a = new int[n]; a new int[n] n int count = 0; count 0 boolean existOdd = false; existOdd false for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = stdin.nextInt(); a[i] = stdin.nextInt() a[i] a i stdin.nextInt() stdin.nextInt stdin while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        } !existOdd existOdd {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        } for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            } {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            } if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                } a[i] % 2 == 1 a[i] % 2 a[i] a i 2 1 {
                    existOdd = true;
                    break;
                } existOdd = true existOdd true break; a[i] /= 2 a[i] a i 2 count++ count System.out.println(count - 1) System.out.println System.out System System.out count - 1 count 1 String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);

        int n = stdin.nextInt();
        int[] a = new int[n];
        int count = 0;
        boolean existOdd = false;

        for (int i = 0; i < n; i++)
            a[i] = stdin.nextInt();

        while (!existOdd) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 == 1) {
                    existOdd = true;
                    break;
                }

                a[i] /= 2;
            }
            count++;
        }

        System.out.println(count - 1);
    }
}
