import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int all = sc.nextInt(); all sc.nextInt() sc.nextInt sc int[] valList = new int[all]; valList new int[all] all for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < all i all i++ i++ i {
            valList[i] = sc.nextInt();
        } {
            valList[i] = sc.nextInt();
        } valList[i] = sc.nextInt() valList[i] valList i sc.nextInt() sc.nextInt sc boolean isAllEven = true; isAllEven true int count = 0; count 0 while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        } isAllEven {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        } for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            } int i = 0; int i = 0; i 0 i < all i all i++ i++ i {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            } {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            } if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                } valList[i] % 2 == 0 valList[i] % 2 valList[i] valList i 2 0 {
                    valList[i] = valList[i] / 2;
                } valList[i] = valList[i] / 2 valList[i] valList i valList[i] / 2 valList[i] valList i 2 {
                    isAllEven = false;
                    break;
                } isAllEven = false isAllEven false break; if (isAllEven) {
                count++;
            } isAllEven {
                count++;
            } 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[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int all = sc.nextInt();
        int[] valList = new int[all];
        for (int i = 0; i < all; i++) {
            valList[i] = sc.nextInt();
        }
        boolean isAllEven = true;
        int count = 0;
        while (isAllEven) {
            for (int i = 0; i < all; i++) {
                if (valList[i] % 2 == 0) {
                    valList[i] = valList[i] / 2;
                } else {
                    isAllEven = false;
                    break;
                }
            }
            if (isAllEven) {
                count++;
            }
        }
        System.out.println(count);
    }
}