import java.util.*;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    } main {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        } {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        } long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc if (a % 2 != 0) continue; a % 2 != 0 a % 2 a 2 0 continue; int cnt = 0; cnt 0 while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            } a % 2 == 0 a % 2 a 2 0 {
                a = a / 2;
                cnt++;
            } a = a / 2 a a / 2 a 2 cnt++ cnt ans += cnt ans cnt System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    }
} public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();

        int ans = 0;
        for (int i = 0; i < N; i++) {
            long a = sc.nextLong();
            if (a % 2 != 0) continue;

            int cnt = 0;
            while (a % 2 == 0) {
                a = a / 2;
                cnt++;
            }
            ans += cnt;
        }
        System.out.println(ans);
    }
}