import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	}
    private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
    private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	}
    private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
    private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] b = new int[a]; b new int[a] a for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            b[i] = sc.nextInt();
        } {
            b[i] = sc.nextInt();
        } b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc int ans = 0; ans 0 while (isEven(b)) {
            ans++;
            b = divide(b);          
        } isEven(b) isEven b {
            ans++;
            b = divide(b);          
        } ans++ ans b = divide(b) b divide(b) divide b System.out.println(ans) System.out.println System.out System System.out ans String[] args args private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    } isEven {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    } for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
            if (b[i] % 2 == 1) {
                return false;
            }
        } {
            if (b[i] % 2 == 1) {
                return false;
            }
        } if (b[i] % 2 == 1) {
                return false;
            } b[i] % 2 == 1 b[i] % 2 b[i] b i 2 1 {
                return false;
            } return false; false return true; true int[] b b private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    } divide {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    } for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
            b[i] /= 2; 
        } {
            b[i] /= 2; 
        } b[i] /= 2 b[i] b i 2 return b; b int[] b b public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	}
    private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
    private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	}
    private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
    private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
        }
        int ans = 0;
        while (isEven(b)) {
            ans++;
            b = divide(b);          
        }
		System.out.println(ans);
	}
    private static boolean isEven(int[] b) {
        for (int i = 0; i < b.length; i++) {
            if (b[i] % 2 == 1) {
                return false;
            }
        }
        return true;
    }
    private static int[] divide(int[] b) {
        for (int i = 0; i < b.length; i++) {
            b[i] /= 2; 
        }
        return b;
    }
}