import java.io.*;
import static java.lang.Math.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s); }
  int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  }
} import java.io.*; io.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s); }
  int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) final int n = atoi(in.readLine()); n atoi(in.readLine()) atoi in.readLine() in.readLine in int[] a = mapInt(in.readLine().split(" ")); a mapInt(in.readLine().split(" ")) mapInt in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int ans = 64; ans 64 for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      } int num a {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      } {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      } int cnt = 0; cnt 0 while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        } (num & 1) == 0 (num & 1) num 1 0 {
          num = num >> 1;
          cnt++;
        } num = num >> 1 num num >> 1 num 1 cnt++ cnt ans = min(ans, cnt) ans min(ans, cnt) min ans cnt out.println(ans) out.println out ans int atoi(String s) { return Integer.parseInt(s); } atoi { return Integer.parseInt(s); } return Integer.parseInt(s); Integer.parseInt(s) Integer.parseInt Integer s String s s long atol(String s) { return Long.parseLong(s); } atol { return Long.parseLong(s); } return Long.parseLong(s); Long.parseLong(s) Long.parseLong Long s String s s int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  } mapInt {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  } int[] ret = new int[sa.length]; ret new int[sa.length] sa.length sa sa.length for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]); int i = 0; int i = 0; i 0 i < sa.length i sa.length sa sa.length i++ i++ i ret[i] = atoi(sa[i]); ret[i] = atoi(sa[i]) ret[i] ret i atoi(sa[i]) atoi sa[i] sa i return ret; ret String[] sa sa public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s); }
  int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  }
} public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s); }
  int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  }
} Main
import java.io.*;
import static java.lang.Math.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      final int n = atoi(in.readLine());
      int[] a = mapInt(in.readLine().split(" "));

      int ans = 64;
      for (int num : a) {
        int cnt = 0;
        while((num & 1) == 0) {
          num = num >> 1;
          cnt++;
        }
        ans = min(ans, cnt);
      }

      out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s); }
  int[] mapInt(String[] sa) {
    int[] ret = new int[sa.length];
    for (int i = 0; i < sa.length; i++) ret[i] = atoi(sa[i]);
    return ret;
  }
}