import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    }

    private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    }

    private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] series = new int[num]; series new int[num] num for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            series[i] = sc.nextInt();
        } {
            series[i] = sc.nextInt();
        } series[i] = sc.nextInt() series[i] series i sc.nextInt() sc.nextInt sc boolean isEven = isEven(series); isEven isEven(series) isEven series int count = 0; count 0 while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        } isEven {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        } count++ count for (int i = 0; i < num; i++) {
                series[i] /= 2;
            } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
                series[i] /= 2;
            } {
                series[i] /= 2;
            } series[i] /= 2 series[i] series i 2 isEven = isEven(series) isEven isEven(series) isEven series System.out.println(count) System.out.println System.out System System.out count String[] args args private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    } isEven {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    } boolean isEven = true; isEven true for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < series.length i series.length series series.length i++ i++ i {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        } {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        } if (series[i] % 2 != 0) {
                isEven = false;
                break;
            } series[i] % 2 != 0 series[i] % 2 series[i] series i 2 0 {
                isEven = false;
                break;
            } isEven = false isEven false break; return isEven; isEven int[] series series public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    }

    private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    }

    private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] series = new int[num];

        for (int i = 0; i < num; i++) {
            series[i] = sc.nextInt();
        }

        boolean isEven = isEven(series);
        int count = 0;
        while (isEven) {
            count++;

            for (int i = 0; i < num; i++) {
                series[i] /= 2;
            }
            isEven = isEven(series);
        }

        System.out.println(count);
    }

    private static boolean isEven(int[] series) {
        boolean isEven = true;
        for (int i = 0; i < series.length; i++) {
            if (series[i] % 2 != 0) {
                isEven = false;
                break;
            }
        }

        return isEven;
    }
}
