public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    }
} Main private static java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    } main {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        } {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        } String str = Integer.toString(scanner.nextInt(), 2); str Integer.toString(scanner.nextInt(), 2) Integer.toString Integer scanner.nextInt() scanner.nextInt scanner 2 ans += str.length() - str.lastIndexOf("1") - 1 ans str.length() - str.lastIndexOf("1") - 1 str.length() - str.lastIndexOf("1") - 1 str.length() str.length str str.lastIndexOf("1") str.lastIndexOf str "1" 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    }
} Main
public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        int ans = 0;
        for (int i = 0; i < n; i++) {
            String str = Integer.toString(scanner.nextInt(), 2);
            ans += str.length() - str.lastIndexOf("1") - 1;
        }
        System.out.println(ans);
    }
}