//package Contest081;

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    }
} Main public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int arr []=new int [n]; arr new int [n] n for(int i=0;i<n;i++)
                arr[i]=sc.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i arr[i]=sc.nextInt(); arr[i]=sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc int cnt =0; cnt 0 boolean flag = true; flag true while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            } true {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            } for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                } {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                } if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2; arr[i]%2!=0 arr[i]%2 arr[i] arr i 2 0 {
                        flag = false;
                        break;
                    } flag = false flag false break; arr[i] = arr[i]/2 arr[i] arr i arr[i]/2 arr[i] arr i 2 if(flag==true)
                    cnt++;
                else
                    break; flag==true flag true cnt++ cnt break; out.println(cnt) out.println out cnt out.flush() out.flush out String []args args public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    }
} public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    }
} Main
//package Contest081;

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int n = sc.nextInt();
            int arr []=new int [n];
            for(int i=0;i<n;i++)
                arr[i]=sc.nextInt();
            int cnt =0;
            boolean flag = true;
            while(true)
            {
                for(int i=0;i<n;i++)
                {
                    if(arr[i]%2!=0)
                    {
                        flag = false;
                        break;
                    }
                    else
                        arr[i] = arr[i]/2;
                }
                if(flag==true)
                    cnt++;
                else
                    break;
            }
                out.println(cnt);
        out.flush();
    }
}
