import 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 fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  }
} import java.util.*; util.* java 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 fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

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

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int[] a = new int[N];
    boolean fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  } 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 fg = true; fg true int count = 0; count 0 for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
      a[i] = sc.nextInt();
    } {
      a[i] = sc.nextInt();
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true); fg == true fg true {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    } for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      } int j=0; int j=0; j 0 j<a.length j a.length a a.length j++ j++ j {
          if (a[j]%2 != 0) {
              fg = false;
          }
      } {
          if (a[j]%2 != 0) {
              fg = false;
          }
      } if (a[j]%2 != 0) {
              fg = false;
          } a[j]%2 != 0 a[j]%2 a[j] a j 2 0 {
              fg = false;
          } fg = false fg false if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      } fg == true fg true {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      } for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
          a[i] = a[i]/2;
        } {
          a[i] = a[i]/2;
        } a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 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 sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int[] a = new int[N];
    boolean fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  }
} 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 fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  }
} Main
import 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 fg = true;
    int count = 0;
    
    for (int i=0;i<a.length; i++) {
      a[i] = sc.nextInt();
    }
    
    do {
      for (int j=0; j<a.length; j++) {
          if (a[j]%2 != 0) {
              fg = false;
          }
      }

      if (fg == true) {
        for (int i=0; i<a.length; i++) {
          a[i] = a[i]/2;
        }
        count++;
      }
    }while(fg == true);
    
    System.out.println(count);
  }
}