import java.util.Scanner;

class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        }

        boolean flag = true;
        int count = 0;
        while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);

    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        }

        boolean flag = true;
        int count = 0;
        while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);

    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        }

        boolean flag = true;
        int count = 0;
        while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);

    } main {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        }

        boolean flag = true;
        int count = 0;
        while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = Integer.parseInt(scan.next());
        } {
            a[i] = Integer.parseInt(scan.next());
        } a[i] = Integer.parseInt(scan.next()) a[i] a i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan boolean flag = true; flag true int count = 0; count 0 while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        } true {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        } for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            } {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            } if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                } a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
                    flag = false;
                    break;
                } flag = false flag false break; if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            } flag {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } count++ count for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                    a[i] = a[i] / 2;
                } {
                    a[i] = a[i] / 2;
                } a[i] = a[i] / 2 a[i] a i a[i] / 2 a[i] a i 2 {
                break;
            } break; System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(scan.next());
        }

        boolean flag = true;
        int count = 0;
        while (true) {
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                count++;
                for (int i = 0; i < n; i++) {
                    a[i] = a[i] / 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);

    }
}