import java.io.*;
import java.util.*;
public class Main{
  public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
  public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int rand[] = new int[x]; rand new int[x] x for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i<x i x i++ i++ i {
      rand[i] = sc.nextInt();
    } {
      rand[i] = sc.nextInt();
    } rand[i] = sc.nextInt() rand[i] rand i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int count = -1; count -1 1 int half[] = new int[x]; half new int[x] x half = rand half rand boolean flg = true; flg true while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    } flg {
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    } for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      } int i = 0; int i = 0; i 0 i<x i x i++ i++ i {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      } {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      } if (half[i]%2 ==1) {
          flg = false;
        } half[i]%2 ==1 half[i]%2 half[i] half i 2 1 {
          flg = false;
        } flg = false flg false half[i] = half[i]/2 half[i] half i half[i]/2 half[i] half i 2 count = count + 1 count count + 1 count 1 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) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
} public class Main{
  public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
} Main
import java.io.*;
import java.util.*;
public class Main{
  public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
}