import java.util.*;

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

        ArrayList<Integer> numberSubList = list;
        while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        }

        System.out.println(count);
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
        int count = 0;
        boolean isContinue = true;

        ArrayList<Integer> numberSubList = list;
        while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        }

        System.out.println(count);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
        int count = 0;
        boolean isContinue = true;

        ArrayList<Integer> numberSubList = list;
        while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        }
        int count = 0;
        boolean isContinue = true;

        ArrayList<Integer> numberSubList = list;
        while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i=0;i<n;i++) {
            list.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int count = 0; count 0 boolean isContinue = true; isContinue true ArrayList<Integer> numberSubList = list; numberSubList list while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        } isContinue {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        } ArrayList<Integer> numberSubSubList = new ArrayList<>(); numberSubSubList new ArrayList<>() for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            } int number numberSubList {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            } {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            } if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                } number % 2 == 0 number % 2 number 2 0 {
                    numberSubSubList.add(number / 2);
                } numberSubSubList.add(number / 2) numberSubSubList.add numberSubSubList number / 2 number 2 {
                    isContinue = false;
                    break;

                } isContinue = false isContinue false break; if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            } isContinue {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            } count++ count numberSubList = new ArrayList<>(numberSubSubList) numberSubList new ArrayList<>(numberSubSubList) System.out.println(count) System.out.println System.out System System.out count String args[] args
import java.util.*;

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

        ArrayList<Integer> numberSubList = list;
        while(isContinue) {
            ArrayList<Integer> numberSubSubList = new ArrayList<>();
            for(int number : numberSubList) {
                if(number % 2 == 0) {
                    numberSubSubList.add(number / 2);
                } else {
                    isContinue = false;
                    break;

                }

            }

            if(isContinue) {
                count++;
                numberSubList = new ArrayList<>(numberSubSubList);
            }

        }

        System.out.println(count);
    }
}