import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	} main {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	} int i i j; j Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a = new int[n]; a new int[n] n for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			a[i] = Integer.parseInt(sc.next());
		} {
			a[i] = Integer.parseInt(sc.next());
		} a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc sc = null sc null int cnt = 0; cnt 0 while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		} true {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		} for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			} j = 0; j = 0 j 0 j < n j n j++ j++ j {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			} {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			} if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				} a[j] % 2 == 0 a[j] % 2 a[j] a j 2 0 {
					a[j] >>= 1;
				} a[j] >>= 1 a[j] a j 1 {
					break;
				} break; if(j == n) {
				cnt++;
			} else {
				break;
			} j == n j n {
				cnt++;
			} cnt++ cnt {
				break;
			} break; System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int[] a = new int[n];
		for(i = 0; i < n; i++) {
			a[i] = Integer.parseInt(sc.next());
		}
		sc.close();
		sc = null;
		int cnt = 0;
		while(true) {
			for(j = 0; j < n; j++) {
				if(a[j] % 2 == 0) {
					a[j] >>= 1;
				} else {
					break;
				}
			}
			if(j == n) {
				cnt++;
			} else {
				break;
			}
		}
		System.out.println(cnt);
	}
}