import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    }
}
 import java.util.ArrayList; ArrayList java.util import java.util.LinkedList; LinkedList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    }
} Main public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner List<Integer> xs = new ArrayList<>(n); xs new ArrayList<>(n) for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            xs.add(scanner.nextInt());
        } {
            xs.add(scanner.nextInt());
        } xs.add(scanner.nextInt()) xs.add xs scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        } true {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        } for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            } int i = 0; int i = 0; i 0 i < xs.size() i xs.size() xs.size xs i++ i++ i {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            } {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            } if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                } xs.get(i) % 2 == 0 xs.get(i) % 2 xs.get(i) xs.get xs i 2 0 {
                    xs.set(i, xs.get(i) / 2);
                } xs.set(i, xs.get(i) / 2) xs.set xs i xs.get(i) / 2 xs.get(i) xs.get xs i 2 {
                    System.out.println(count);
                    return;
                } System.out.println(count) System.out.println System.out System System.out count return; count++ count String[] args args public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    }
} Main
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<Integer> xs = new ArrayList<>(n);
        for (int i = 0; i < n; i++) {
            xs.add(scanner.nextInt());
        }

        int count = 0;
        while (true) {
            for (int i = 0; i < xs.size(); i++) {
                if (xs.get(i) % 2 == 0) {
                    xs.set(i, xs.get(i) / 2);
                }
                else {
                    System.out.println(count);
                    return;
                }
            }

            count++;
        }
    }
}

