import java.util.Scanner;

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

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  }

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

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  }

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

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  } main {
    Scanner sc = new Scanner(System.in);

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int size = sc.nextInt(); size sc.nextInt() sc.nextInt sc int nums[] = new int[size]; nums new int[size] size for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
      nums[i] = sc.nextInt();
    } {
      nums[i] = sc.nextInt();
    } nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc int count = 0; count 0 while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    } true {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    } for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      } {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      } if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        } nums[i] == 0 || nums[i] % 2 == 1 nums[i] == 0 nums[i] nums i 0 nums[i] % 2 == 1 nums[i] % 2 nums[i] nums i 2 1 {
          System.out.println(count);
          return;
        } System.out.println(count) System.out.println System.out System System.out count return; nums[i] = nums[i] / 2 nums[i] nums i nums[i] / 2 nums[i] nums i 2 count++ count String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  }

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

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  }

} Main
import java.util.Scanner;

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

    int size = sc.nextInt();
    
    int nums[] = new int[size];
    for (int i = 0; i < size; i++) {
      nums[i] = sc.nextInt();
    }

    int count = 0;

    while(true) {
      for (int i = 0; i < size; i++) {
        if (nums[i] == 0 || nums[i] % 2 == 1) {
          System.out.println(count);
          return;
        }
        nums[i] = nums[i] / 2;
      }
      count++;
    }
  }

}