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];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 }
} 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];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int a[] = new int[n];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int a[] = new int[n];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 } 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 for (int i = 0; i < n; i++) a[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = sc.nextInt(); a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int y = 0; y 0 while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    } true {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    } int x = 0; x 0 for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      } {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      } if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        } a[i] % 2 == 0 a[i] % 2 a[i] a i 2 0 {
          a[i] /= 2;
          x++;
        } a[i] /= 2 a[i] a i 2 x++ x {
          break;
        } break; if (x == n) {
        y++;
      } else {
        break;
      } x == n x n {
        y++;
      } y++ y {
        break;
      } break; System.out.println(y) System.out.println System.out System System.out y 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];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 }
} public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int a[] = new int[n];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 }
} 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];
    for (int i = 0; i < n; i++) a[i] = sc.nextInt();
    
    int y = 0;
    while (true) {
      int x = 0;
      for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 0) {
          a[i] /= 2;
          x++;
        } else {
          break;
        }
      }
      if (x == n) {
        y++;
      } else {
        break;
      }
    }
    
    System.out.println(y);
 }
}