import java.util.*;
import java.lang.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = Integer.parseInt(sc.next());
        } {
            a[i] = Integer.parseInt(sc.next());
        } a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean finish = false; finish false int cnt = 0; cnt 0 while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        } !finish finish {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        } cnt++ cnt for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            } {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            } if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                } a[i] % 2 != 0 a[i] % 2 a[i] a i 2 0 {
                    finish = true;
                    cnt--;
                    break;
                } finish = true finish true cnt-- cnt break; {
                    a[i] = a[i] / 2;
                } a[i] = a[i] / 2 a[i] a i a[i] / 2 a[i] a i 2 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

        boolean finish = false;
        int cnt = 0;
        while (!finish) {
            cnt++;
            for (int i = 0; i < n; i++) {
                if (a[i] % 2 != 0) {
                    finish = true;
                    cnt--;
                    break;
                } else {
                    a[i] = a[i] / 2;
                }
            }
        }
        System.out.println(cnt);
    }
} Main
import java.util.*;
import java.lang.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = Integer.parseInt(sc.next());
        }

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