import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ans = 0; ans 0 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    } int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
      a[cnt] = sc.nextInt();
    } {
      a[cnt] = sc.nextInt();
    } a[cnt] = sc.nextInt() a[cnt] a cnt sc.nextInt() sc.nextInt sc while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    } true {
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    } for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      } int cnt = 0; int cnt = 0; cnt 0 cnt < a.length cnt a.length a a.length cnt++ cnt++ cnt {
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      } {
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      } if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        } a[cnt] % 2 == 0 a[cnt] % 2 a[cnt] a cnt 2 0 {
          a[cnt] /= 2;
        } a[cnt] /= 2 a[cnt] a cnt 2 {
          System.out.println(ans);
          return;
        } System.out.println(ans) System.out.println System.out System System.out ans return; ans++ ans String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0;
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int cnt = 0; cnt < n; cnt++){
      a[cnt] = sc.nextInt();
    }
    while(true){
      for(int cnt = 0; cnt < a.length ; cnt++){
        if(a[cnt] % 2 == 0){
          a[cnt] /= 2;
        }
        else{
          System.out.println(ans);
          return;
        }
      }
      ans++;
    }
  }
}