import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    }
} import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    }
} Main public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    } main {
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner sc = new Scanner(inputStream); sc new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int bit = 0; bit 0 for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      	bit |= Integer.parseInt(sc.next());
      } {
      	bit |= Integer.parseInt(sc.next());
      } bit |= Integer.parseInt(sc.next()) bit Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc out.println(Integer.numberOfTrailingZeros(bit)) out.println out Integer.numberOfTrailingZeros(bit) Integer.numberOfTrailingZeros Integer bit out.close() out.close out String[] args args public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    }
} public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int bit = 0;
      for(int i = 0; i < N; i++){
      	bit |= Integer.parseInt(sc.next());
      }
      out.println(Integer.numberOfTrailingZeros(bit));
      out.close();
    }
}