import java.util.Scanner;

public class Main{
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
} 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[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
} Main public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  } main {
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] numbers = new int[n]; numbers new int[n] n int counter = 0; counter 0 for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		  numbers[i] = sc.nextInt();
	  } {
		  numbers[i] = sc.nextInt();
	  } numbers[i] = sc.nextInt() numbers[i] numbers i sc.nextInt() sc.nextInt sc while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  } true {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  } boolean isKisuu = false; isKisuu false for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  } {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  } if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  } numbers[j] % 2 == 1 numbers[j] % 2 numbers[j] numbers j 2 1 {
				  isKisuu = true;
				  break;
			  } isKisuu = true isKisuu true break; {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  } numbers[j] /= 2 numbers[j] numbers j 2 counter = counter + 1 counter counter + 1 counter 1 if (isKisuu) {
			 break;
		 } isKisuu {
			 break;
		 } break; System.out.println(counter / n) System.out.println System.out System System.out counter / n counter n String[] args args public class Main{
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
} public class Main{
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
} 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[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  boolean isKisuu = false;
		  for(int j = 0; j < n; j++) {
			  if (numbers[j] % 2 == 1) {
				  isKisuu = true;
				  break;
			  } else {
				  numbers[j] /= 2;
				  counter = counter + 1;
			  }
		  }

		 if (isKisuu) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
}