import java.util.*;
 
 
public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         } main {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int M[] = new int[N]; M new int[N] N int count =0; count 0 int flag =0; flag 0 for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      } int n = 0; int n = 0; n 0 n<N n N n++ n++ n {
          M[n] = sc.nextInt();
      } {
          M[n] = sc.nextInt();
      } M[n] = sc.nextInt() M[n] M n sc.nextInt() sc.nextInt sc while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     } true {
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     } for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         } int n = 0; int n = 0; n 0 n<N n N n++ n++ n {
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         } {
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         } int remainder= M[n] % 2; remainder M[n] % 2 M[n] M n 2 if(remainder == 1){
                 flag =1;
             } remainder == 1 remainder 1 {
                 flag =1;
             } flag =1 flag 1 M[n]= M[n] / 2 M[n] M n M[n] / 2 M[n] M n 2 if(flag==1){
             break;
         } flag==1 flag 1 {
             break;
         } break; 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 sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         }
} public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         }
} Main
import java.util.*;
 
 
public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int M[] = new int[N];
      int count =0;
      int flag =0;
      for(int n = 0; n<N; n++){
          M[n] = sc.nextInt();
      }
     while (true){
         for(int n = 0; n<N; n++){
             int remainder= M[n] % 2;
             if(remainder == 1){
                 flag =1;
             }
             M[n]= M[n] / 2;
         }
         if(flag==1){
             break;
         }
         count++;
     }
     System.out.println(count);
         }
}