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

public class Main {
    public static void main(String[] args) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    }
} import java.util.ArrayList; ArrayList 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) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    }
} Main public static void main(String[] args) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    } main {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    } try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        } {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        } Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 boolean flg = true; flg true List<Integer> numList = new ArrayList<>(); numList new ArrayList<>() scanner.nextLine() scanner.nextLine scanner for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            } {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            } int j = scanner.nextInt(); j scanner.nextInt() scanner.nextInt scanner if (j % 2 == 1) {
                    flg = false;
                    break;
                } j % 2 == 1 j % 2 j 2 1 {
                    flg = false;
                    break;
                } flg = false flg false break; numList.add(j) numList.add numList j while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            } flg {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            } List<Integer> nextNumList = new ArrayList<>(); nextNumList new ArrayList<>() for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                } Integer i numList {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                } {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                } if (i % 2 == 1) {
                        flg = false;
                        break;
                    } i % 2 == 1 i % 2 i 2 1 {
                        flg = false;
                        break;
                    } flg = false flg false break; nextNumList.add(i / 2) nextNumList.add nextNumList i / 2 i 2 if (!flg) {
                    break;
                } !flg flg {
                    break;
                } break; numList = nextNumList numList nextNumList count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try(Scanner scanner = new Scanner(System.in)) {
            int N = scanner.nextInt();
            int count = 0;
            boolean flg = true;
            List<Integer> numList = new ArrayList<>();
            scanner.nextLine();
            for (int i = 0; i < N; i++) {
                int j = scanner.nextInt();
                if (j % 2 == 1) {
                    flg = false;
                    break;
                }
                numList.add(j);
            }
            while (flg) {
                List<Integer> nextNumList = new ArrayList<>();
                for (Integer i : numList) {
                    if (i % 2 == 1) {
                        flg = false;
                        break;
                    }
                    nextNumList.add(i / 2);
                }
                if (!flg) {
                    break;
                }
                numList = nextNumList;
                count++;
            }
            System.out.println(count);
        }
    }
}
