import java.util.*;
 
public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    }
  
    private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
} 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[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    }
  
    private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    } main {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++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[] nums = new int[N + 1]; nums new int[N + 1] N + 1 N 1 for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        	nums[i] = sc.nextInt();
        } {
        	nums[i] = sc.nextInt();
        } nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc int count = 0; count 0 while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        } isAllOdd(nums) isAllOdd nums {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        } for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            	nums[i] = nums[i] / 2;
            } {
            	nums[i] = nums[i] / 2;
            } nums[i] = nums[i] / 2 nums[i] nums i nums[i] / 2 nums[i] nums i 2 ++count count System.out.println(count) System.out.println System.out System System.out count String[] args args private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    } isAllOdd {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    } for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        } int i = 0; int i = 0; i 0 i < nums.length i nums.length nums nums.length i++ i++ i {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        } {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        } if (nums[i] % 2 != 0) {
            	return false;
            } nums[i] % 2 != 0 nums[i] % 2 nums[i] nums i 2 0 {
            	return false;
            } return false; false return true; true int[] nums nums public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    }
  
    private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
} public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    }
  
    private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        System.out.println(count);
    }
  
    private static boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
}