import java.util.Arrays;
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];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  }
}
 import java.util.Arrays; Arrays java.util 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];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  }
} Main public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n=sc.nextInt();
	  int[] a=new int[n];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  } main {
	  Scanner sc = new Scanner(System.in);
	  int n=sc.nextInt();
	  int[] a=new int[n];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  } 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]; a new int[n] n boolean f=true; f true for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  } {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  } a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if(a[i]%2!=0)f=false; a[i]%2!=0 a[i]%2 a[i] a i 2 0 f=false f false if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  } f {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  } Arrays.sort(a) Arrays.sort Arrays a int count=0; count 0 while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  } f {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  } count++ count for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  } {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  } a[i]/=2 a[i] a i 2 if(a[i]%2!=0)f=false; a[i]%2!=0 a[i]%2 a[i] a i 2 0 f=false f false System.out.println(count) System.out.println System.out System System.out count {
		  System.out.println(0);
	  } System.out.println(0) System.out.println System.out System System.out 0 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];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  }
} public class Main{
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n=sc.nextInt();
	  int[] a=new int[n];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  }
} Main
import java.util.Arrays;
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];
	  boolean f=true;
	  for(int i=0;i<n;i++) {
		  a[i]=sc.nextInt();
		  if(a[i]%2!=0)f=false;
	  }
	  if(f) {
		  Arrays.sort(a);
		  int count=0;
		  while(f) {
			  count++;
			  for(int i=0;i<n;i++) {
				  a[i]/=2;
				  if(a[i]%2!=0)f=false;
			  }
		  }
		  System.out.println(count);
	  }else {
		  System.out.println(0);
	  }

  }
}

