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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(count);
    } 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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(count);
    } 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 = 0; count 0 while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        } true {
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        } boolean bool = false; bool false for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          } int an a {
              if(an % 2 != 0){
                  bool = true;
              }
          } {
              if(an % 2 != 0){
                  bool = true;
              }
          } if(an % 2 != 0){
                  bool = true;
              } an % 2 != 0 an % 2 an 2 0 {
                  bool = true;
              } bool = true bool true if(bool){break;} bool {break;} break; for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
          	a[i] /= 2;
      	  } {
          	a[i] /= 2;
      	  } a[i] /= 2 a[i] a i 2 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args 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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(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 = 0;
      	while(true){
      	  boolean bool = false;
          for(int an: a){
              if(an % 2 != 0){
                  bool = true;
              }
          }
          if(bool){break;}
      	  for(int i=0; i<n; i++){
          	a[i] /= 2;
      	  }
          count++;
        }
      	System.out.println(count);
    }
}
