import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	} main {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	} Scanner sc = new Scanner((System.in)); sc new Scanner((System.in)) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] a = new int[N + 1]; a new int[N + 1] N + 1 N 1 long b = 0 b 0 c = 0; c 0 for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		} {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if (a[i] > c) {
                c = a[i];
            } a[i] > c a[i] a i c {
                c = a[i];
            } c = a[i] c a[i] a i for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        } {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        } int n = a[i]; n a[i] a i b = 0 b 0 while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            } n % 2 == 0 && n > 0 n % 2 == 0 n % 2 n 2 0 n > 0 n 0 {
                n = n / 2;
                b++;
            } n = n / 2 n n / 2 n 2 b++ b if (b < c) {
                c = b;
            } b < c b c {
                c = b;
            } c = b c b System.out.println(c) System.out.println System.out System System.out c sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int[] a = new int[N + 1];
		long b = 0, c = 0;
		
		for (int i = 0; i < N; i++) {
            a[i] = sc.nextInt();
            if (a[i] > c) {
                c = a[i];
            }
		}
    
        for (int i = 0; i < N; i++) {
            int n = a[i];
            b = 0;
            while (n % 2 == 0 && n > 0) {
                n = n / 2;
                b++;
            }
            if (b < c) {
                c = b;
            }
        }
		
		System.out.println(c);

		sc.close();
	}
}
