import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  }
} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  } main {
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    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[] array = new int[n]; array new int[n] n for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      array[i] = sc.nextInt();
    } {
      array[i] = sc.nextInt();
    } array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc boolean judge =true; judge true int a=0; a 0 int cnt=0; cnt 0 while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    } judge {
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    } for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        } int j=0; int j=0; j 0 j<n j n j++ j++ j {
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        } {
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        } if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            } array[j]%2==0 array[j]%2 array[j] array j 2 0 {
                array[j]=array[j]/2;
                a++;
            } array[j]=array[j]/2 array[j] array j array[j]/2 array[j] array j 2 a++ a {
                judge=false;
            } judge=false judge false if(a==n){
                cnt++;
                 a=0;
            } a==n a n {
                cnt++;
                 a=0;
            } cnt++ cnt a=0 a 0 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();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n= sc.nextInt();
    //sc.nextLine();
    int[] array = new int[n];
    for(int i=0; i<n; i++){
      array[i] = sc.nextInt();
    }
    //処理部
    boolean judge =true;
    int a=0;
    int cnt=0;
    while(judge){
        for(int j=0; j<n; j++){
            if(array[j]%2==0){
                array[j]=array[j]/2;
                a++;
            }else{
                judge=false;
            }
            if(a==n){
                cnt++;
                 a=0;
            }
           
        }
    }
    System.out.println(cnt);
  }
}