import java.io.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class Main{
  public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

}
} import java.io.*; io.* java import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main{
  public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

}
} Main public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

} main {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

} Scanner reader =new Scanner (System.in); reader new Scanner (System.in) int a =reader.nextInt(); a reader.nextInt() reader.nextInt reader int array[]; array int counter[]; counter int min=0; min 0 array=new int [a] array new int [a] a counter=new int [a] counter new int [a] a for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    } int i=0; int i=0; i 0 i<a i a i++ i++ i {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    } {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    } array[i]=reader.nextInt() array[i] array i reader.nextInt() reader.nextInt reader while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      } array[i]%2!=1 array[i]%2 array[i] array i 2 1 {
        array[i]=array[i]/2;
        counter[i]++;

      } array[i]=array[i]/2 array[i] array i array[i]/2 array[i] array i 2 counter[i]++ counter[i] counter i min =counter[0] min counter[0] counter 0 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 } int i=0; int i=0; i 0 i<a i a i++ i++ i {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 } {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 } if(counter[i]<min)
   {
     min=counter[i];

   } counter[i]<min counter[i] counter i min {
     min=counter[i];

   } min=counter[i] min counter[i] counter i System.out.println (min) System.out.println System.out System System.out min String[] args args public class Main{
  public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

}
} public class Main{
  public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

}
} Main
import java.io.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class Main{
  public static void main(String[] args)
  {

    Scanner reader =new Scanner (System.in);
    int a =reader.nextInt();
    int array[];
    int counter[];
    int min=0;
    array=new int [a];
    counter=new int [a];
    for(int i=0;i<a;i++)
    {
      array[i]=reader.nextInt();
      while(array[i]%2!=1)
      {
        array[i]=array[i]/2;
        counter[i]++;

      }


    }
min =counter[0];
 for(int i=0;i<a;i++)
 {

   if(counter[i]<min)
   {
     min=counter[i];

   }

 }
 System.out.println (min);

}
}
