
import java.util.*;
import java.util.stream.Collectors;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    }
    public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    }
} import java.util.*; util.* java import java.util.stream.Collectors; Collectors java.util.stream public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    }
    public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    } main {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int N= scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int result=0; result 0 for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            result+=func(scanner.nextInt());
        } {
            result+=func(scanner.nextInt());
        } result+=func(scanner.nextInt()) result func(scanner.nextInt()) func scanner.nextInt() scanner.nextInt scanner System.out.println(result) System.out.println System.out System System.out result String[] args args public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    } func {
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    } if(n%2!=0){
            return 0;
        } n%2!=0 n%2 n 2 0 {
            return 0;
        } return 0; 0 return func(n/2)+1; func(n/2)+1 func(n/2) func n/2 n 2 1 int n n public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    }
    public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    }
    public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    }
} Main

import java.util.*;
import java.util.stream.Collectors;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        final int N= scanner.nextInt();
        int result=0;
        for(int i=0;i<N;i++){
            result+=func(scanner.nextInt());
        }
        System.out.println(result);
    }
    public static int func(int n){
        if(n%2!=0){
            return 0;
        }
        return func(n/2)+1;
    }
}
