
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc boolean flag = true; flag true int ans = 0; ans 0 while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        } flag {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        } for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            } int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            } {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            } if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                } list.get(i)%2 == 0 list.get(i)%2 list.get(i) list.get list i 2 0 {
                    list.set(i, list.get(i)/2);
                } list.set(i, list.get(i)/2) list.set list i list.get(i)/2 list.get(i) list.get list i 2 {
                    flag = false;
                } flag = false flag false if (flag) ans++; flag ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    }
} Main

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }

        boolean flag = true;
        int ans = 0;
        while (flag) {
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i)%2 == 0) {
                    list.set(i, list.get(i)/2);
                } else {
                    flag = false;
                }
            }
            if (flag) ans++;
        }
        System.out.println(ans);
    }
}