import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    }
} Main public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    } main {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    } int count = 0; count 0 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++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    } int i=0; int i=0; i 0 i < n i n i++ i++ i {
	    	int a = sc.nextInt();
	    	array[i] = a;
	    } {
	    	int a = sc.nextInt();
	    	array[i] = a;
	    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc array[i] = a array[i] array i a boolean flag=true; flag true while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    } true {
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    } for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    } int i=0; int i=0; i 0 i < n i n i++ i++ i {
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    } {
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    } if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    } array[i] % 2 == 1 array[i] % 2 array[i] array i 2 1 {
	    	        flag=false;
	    	        break;
	    	    } flag=false flag false break; {
	    	        array[i]=array[i]/2;
	    	    } array[i]=array[i]/2 array[i] array i array[i]/2 array[i] array i 2 if(!flag)break; !flag flag break; count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int array[] = new int[n];
        

        for(int i=0; i < n; i++){
	    	int a = sc.nextInt();
	    	array[i] = a;
	    }

	    boolean flag=true;
        
        while(true){
            
    	    for(int i=0; i < n; i++){
	    	    if ( array[i] % 2 == 1){
	    	        flag=false;
	    	        break;
	    	    }else{
	    	        array[i]=array[i]/2;
	    	    }
    	    }
	    	
	    	if(!flag)break;
	    	
	    	count++;
	    }

        System.out.println(count);
        sc.close();
    }
}
