import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        int n, c;
        try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        }

        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        int n, c;
        try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        }

        System.out.println(c);
    }
} Main public static void main(String[] args) {
        int n, c;
        try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        }

        System.out.println(c);
    } main {
        int n, c;
        try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        }

        System.out.println(c);
    } int n n c; c try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        } {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        } Scanner cin = new Scanner(System.in) Scanner cin = new Scanner(System.in) new Scanner(System.in) n = cin.nextInt() n cin.nextInt() cin.nextInt cin c = 0 c 0 for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            } {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            } int x = cin.nextInt(); x cin.nextInt() cin.nextInt cin int rem = x % 2; rem x % 2 x 2 while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                } rem == 0 rem 0 {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                } x = x / 2 x x / 2 x 2 c++ c rem = x % 2 rem x % 2 x 2 System.out.println(c) System.out.println System.out System System.out c String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        int n, c;
        try (Scanner cin = new Scanner(System.in)) {
            n = cin.nextInt();
            c = 0;
            for (int i = 0;i < n; i++) {
                int x = cin.nextInt();
                int rem = x % 2;
                while (rem == 0) {
                    x = x / 2;
                    c++;
                    rem = x % 2;
                }
            }
        }

        System.out.println(c);
    }
}