import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

} 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();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] x = new int[n]; x new int[n] n for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        } {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        } x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 boolean b = true; b true while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        } b {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        } for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            } {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            } if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                } x[i] % 2 == 0 x[i] % 2 x[i] x i 2 0 {
                    x[i] = x[i] / 2;
                } x[i] = x[i] / 2 x[i] x i x[i] / 2 x[i] x i 2 {
                    b = false;
                    break;
                } b = false b false break; if (b) {
                cnt++;
            } else {
                break;
            } b {
                cnt++;
            } cnt++ cnt {
                break;
            } break; 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 = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

}
