import java.util.*;

class Main {
  public static void main(String[] args) {
    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();
    }
    boolean flag = true;
    int cnt = 0;
    
    while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    }
    System.out.println(cnt);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    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();
    }
    boolean flag = true;
    int cnt = 0;
    
    while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    }
    System.out.println(cnt);
  }
} Main public static void main(String[] args) {
    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();
    }
    boolean flag = true;
    int cnt = 0;
    
    while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    }
    System.out.println(cnt);
  } main {
    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();
    }
    boolean flag = true;
    int cnt = 0;
    
    while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    }
    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 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 boolean flag = true; flag true int cnt = 0; cnt 0 while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    } flag {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    } for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      } {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      } if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        } A[i] % 2 == 0 A[i] % 2 A[i] A i 2 0 {
          A[i] /= 2;
        } A[i] /= 2 A[i] A i 2 {
          flag = false;
        } flag = false flag false if(flag) {
      	cnt += 1;
      } flag {
      	cnt += 1;
      } cnt += 1 cnt 1 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    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();
    }
    boolean flag = true;
    int cnt = 0;
    
    while(flag) {
      for(int i=0; i<n; i++) {
        if(A[i] % 2 == 0) {
          A[i] /= 2;
        } else {
          flag = false;
        }
      }
      if(flag) {
      	cnt += 1;
      }
    }
    System.out.println(cnt);
  }
}