import java.util.Scanner;

public class Main {
      public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      }
} import java.util.Scanner; Scanner java.util public class Main {
      public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      }
} Main public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      } main {
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int element = scanner.nextInt(); element scanner.nextInt() scanner.nextInt scanner int[] numbers = new int[element]; numbers new int[element] element for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

} int i=0 ; int i=0 ; i 0 i<=element-1 i element-1 element 1 i++ i++ i {
numbers[i] = scanner.nextInt();

} {
numbers[i] = scanner.nextInt();

} numbers[i] = scanner.nextInt() numbers[i] numbers i scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 boolean isEven =true; isEven true scanner = null scanner null System.gc() System.gc System while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
} isEven {
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
} for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

} int i=0 ; int i=0 ; i 0 i<=element-1 i element-1 element 1 i++ i++ i {
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

} {
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

} if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
} numbers[i]%2 == 0 numbers[i]%2 numbers[i] numbers i 2 0 {
	numbers[i] = numbers[i]/2;

} numbers[i] = numbers[i]/2 numbers[i] numbers i numbers[i]/2 numbers[i] numbers i 2 {
isEven = false;
} isEven = false isEven false if(i == element-1 && isEven){
count++;
} i == element-1 && isEven i == element-1 i element-1 element 1 isEven {
count++;
} count++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {
      public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      }
} public class Main {
      public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      }
} Main
import java.util.Scanner;

public class Main {
      public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int element = scanner.nextInt();

int[] numbers = new int[element];

for(int i=0 ; i<=element-1; i++){
numbers[i] = scanner.nextInt();

}

int count = 0;
boolean isEven =true;

scanner = null;
System.gc();

while(isEven){
for(int i=0 ; i<=element-1; i++){
if(numbers[i]%2 == 0){
	numbers[i] = numbers[i]/2;

}else{
isEven = false;
}

if(i == element-1 && isEven){
count++;
}

}
}
System.out.println(count);

      }
}