import java.util.Scanner;

//-------------------------
// 
//-------------------------

public class Main {
    public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    }
} Main public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    } main {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    } boolean isTrue = true; isTrue true int count = 0; count 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] A = new int[N]; A new int[N] N for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            A[i] = Integer.parseInt(scan.next());
        } {
            A[i] = Integer.parseInt(scan.next());
        } A[i] = Integer.parseInt(scan.next()) A[i] A i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan scan.close() scan.close scan while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        } true {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        } for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                if(A[i]%2 != 0) isTrue = false;
            } {
                if(A[i]%2 != 0) isTrue = false;
            } if(A[i]%2 != 0) isTrue = false; A[i]%2 != 0 A[i]%2 A[i] A i 2 0 isTrue = false isTrue false if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            } isTrue {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            } count++ count for(int i=0; i<N; i++) A[i] = A[i]/2; int i=0; int i=0; i 0 i<N i N i++ i++ i A[i] = A[i]/2; A[i] = A[i]/2 A[i] A i A[i]/2 A[i] A i 2 {
                System.out.println(count);
                break;
            } System.out.println(count) System.out.println System.out System System.out count break; String[] args args public class Main {
    public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    }
} Main
import java.util.Scanner;

//-------------------------
// 
//-------------------------

public class Main {
    public static void main(String[] args) {
        boolean isTrue = true;
        int count = 0;

        Scanner scan = new Scanner(System.in);

        int N = Integer.parseInt(scan.next());

        int[] A = new int[N];
        for(int i=0; i<N; i++)
        {
            A[i] = Integer.parseInt(scan.next());
        }

        scan.close();
        
        while(true)
        {
            for(int i=0; i<N; i++)
            {
                if(A[i]%2 != 0) isTrue = false;
            }

            if(isTrue)
            {
                count++;
                for(int i=0; i<N; i++) A[i] = A[i]/2;
            }
            else
            {
                System.out.println(count);
                break;
            }
        }
    }
}