import java.util.*;

public class Main {

    static int ans = 0;

    private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    }


    public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    static int ans = 0;

    private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    }


    public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    }
} Main static int ans = 0; ans 0 private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    } rec {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    } boolean eNumExist = false; eNumExist false int index = -1; index -1 1 int max = 0; max 0 for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        } {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        } if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            } a[i] % 2 == 0 a[i] % 2 a[i] a i 2 0 {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            } eNumExist = true eNumExist true a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 break; if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        } eNumExist {
            ans++;
            rec(a);

        } ans++ ans rec(a) rec a {

            return;
        } return; int[] a a public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    } main {

        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());
        }

        rec(a);

        System.out.println(ans);
    } 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 rec(a) rec a System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    static int ans = 0;

    private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    }


    public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    }
} public class Main {

    static int ans = 0;

    private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    }


    public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    static int ans = 0;

    private static void rec(int[] a) {

        boolean eNumExist = false;
        int index = -1;
        int max = 0;

        for (int i = 0; i < a.length; i++) {

            if (a[i] % 2 == 0) {
                eNumExist = true;
                a[i] = a[i]/2;
                break;
            }
        }

        if (eNumExist)
        {
            ans++;
            rec(a);

        }else{

            return;
        }
    }


    public static void main(String[] args) {

        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());
        }

        rec(a);

        System.out.println(ans);
    }
}