import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  }
  
  public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
}
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  }
  
  public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
}
} Main public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  } main {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n =  scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        a[i] = scan.nextInt();
      } {
        a[i] = scan.nextInt();
      } a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan int count = even(n,a); count even(n,a) even n a System.out.println(count) System.out.println System.out System System.out count scan.close() scan.close scan String[] args args public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
} even {
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
} int count = 0; count 0 for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  } {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  } if (a[i]%2 != 0){
      return 0;
    } a[i]%2 != 0 a[i]%2 a[i] a i 2 0 {
      return 0;
    } return 0; 0 a[i] /= 2 a[i] a i 2 count = even(n,a) count even(n,a) even n a count++ count return count; count int n n int[] a a public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  }
  
  public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
}
} public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  }
  
  public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
}
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n =  scan.nextInt();
      int[] a = new int[n];
      for (int i=0; i<n; i++) {
        a[i] = scan.nextInt();
      }
      int count = even(n,a);
      System.out.println(count);
      scan.close();
  }
  
  public static int even(int n,int[] a){
  int count = 0;
  for (int i=0; i<n; i++) {
    if (a[i]%2 != 0){
      return 0;
    } 
    a[i] /= 2;
  }
  count = even(n,a);
  count++;
  return count;
}
}

