import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    }

} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    } @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            a[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        } int i = 0 ; int i = 0 ; i 0 i < 35 i 35 i++ i++ i {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        } {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        } boolean flg = true; flg true for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            } int j = 0 ; int j = 0 ; j 0 j < n j n j++ j++ j {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            } {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            } if (a[j] % 2 != 0) {
                    flg = false;
                } a[j] % 2 != 0 a[j] % 2 a[j] a j 2 0 {
                    flg = false;
                } flg = false flg false if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            } flg {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } count++ count for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                } int j = 0 ; int j = 0 ; j 0 j < n j n j++ j++ j {
                    a[j] /= 2;
                } {
                    a[j] /= 2;
                } a[j] /= 2 a[j] a j 2 {
                break;
            } break; 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) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    }

} public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0 ; i < n ; i++) {
            a[i] = sc.nextInt();
        }
        int count = 0;
        for (int i = 0 ; i < 35 ; i++) {
            boolean flg = true;
            for (int j = 0 ; j < n ; j++) {
                if (a[j] % 2 != 0) {
                    flg = false;
                }
            }
            if (flg) {
                count++;
                for (int j = 0 ; j < n ; j++) {
                    a[j] /= 2;
                }
            } else {
                break;
            }
        }
        System.out.println(count);
    }

}