import java.util.*;
public class Main {
  public static void main(String[] args) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  } main {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  } int count = 0; count 0 Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int leng = Integer.parseInt(sc.nextLine()); leng Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String [] nums = sc.nextLine().split(" "); nums sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int evenCount = 0; evenCount 0 for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    } String num nums {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    } {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    } if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      } Integer.parseInt(num) % 2 == 0 Integer.parseInt(num) % 2 Integer.parseInt(num) Integer.parseInt Integer num 2 0 {
        evenCount++;
      } evenCount++ evenCount while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    } evenCount == nums.length evenCount nums.length nums nums.length {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    } evenCount = 0 evenCount 0 count++ count for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      } int i = 0; int i = 0; i 0 i < nums.length i nums.length nums nums.length i++ i++ i {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      } {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      } nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2) nums[i] nums i String.valueOf(Integer.parseInt(nums[i]) / 2) String.valueOf String Integer.parseInt(nums[i]) / 2 Integer.parseInt(nums[i]) Integer.parseInt Integer nums[i] nums i 2 for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      } String num nums {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      } {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      } if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        } Integer.parseInt(num) % 2 == 0 Integer.parseInt(num) % 2 Integer.parseInt(num) Integer.parseInt Integer num 2 0 {
          evenCount++;
        } evenCount++ evenCount 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) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    int count = 0;
    Scanner sc = new java.util.Scanner(System.in);
    int leng = Integer.parseInt(sc.nextLine());
    String [] nums = sc.nextLine().split(" ");
    int evenCount = 0;
    for (String num: nums) {
      if (Integer.parseInt(num) % 2 == 0) {
        evenCount++;
      }
    }
    while (evenCount == nums.length) {
      evenCount = 0;
      count++;
      for (int i = 0; i < nums.length; i++) {
        nums[i] = String.valueOf(Integer.parseInt(nums[i]) / 2);
      }
      for (String num: nums) {
        if (Integer.parseInt(num) % 2 == 0) {
          evenCount++;
        }
      }
    }
    System.out.println(count);
  }
}
