import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    } 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[200]; array new int[200] 200 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 int count = 0; count 0 boolean flg = true; flg true while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      } flg {
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      } for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        } {
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        } if(array[i] % 2 != 0){
            	flg = false;
              break;
            } array[i] % 2 != 0 array[i] % 2 array[i] array i 2 0 {
            	flg = false;
              break;
            } flg = false flg false break; array[i] /= 2 array[i] array i 2 if(!flg) {
        	break;
        } !flg flg {
        	break;
        } break; count ++ count System.out.print(count) System.out.print System.out System System.out count String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    }
}
