import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        }
        int ans = 0;
        boolean flag = false;
        while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        }
        int ans = 0;
        boolean flag = false;
        while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        }
        int ans = 0;
        boolean flag = false;
        while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        }
        System.out.println(ans);
    } main {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        }
        int ans = 0;
        boolean flag = false;
        while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        }
        System.out.println(ans);
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input int A[] = new int[N]; A new int[N] N for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          A[i] = input.nextInt();
        } {
          A[i] = input.nextInt();
        } A[i] = input.nextInt() A[i] A i input.nextInt() input.nextInt input int ans = 0; ans 0 boolean flag = false; flag false while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        } true {
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        } if (flag){
            break;
          } flag {
            break;
          } break; for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          } {
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          } if (A[i]%2 != 0){
              flag = true;
              break;
            } A[i]%2 != 0 A[i]%2 A[i] A i 2 0 {
              flag = true;
              break;
            } flag = true flag true break; if (i == N-1){
              ans += 1;
            } i == N-1 i N-1 N 1 {
              ans += 1;
            } ans += 1 ans 1 A[i] /= 2 A[i] A i 2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++){
          A[i] = input.nextInt();
        }
        int ans = 0;
        boolean flag = false;
        while (true){
          if (flag){
            break;
          }
          for (int i = 0; i < N; i++){
            if (A[i]%2 != 0){
              flag = true;
              break;
            }
            if (i == N-1){
              ans += 1;
            }
            A[i] /= 2;
          }
        }
        System.out.println(ans);
    }
}