import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    } main {
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int N  = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner final ArrayList<Integer> A = new ArrayList<>(); A new ArrayList<>() int sum = 0; sum 0 for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        } {
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 while(a%2==0){
                a=a/2;
                count++;
            } a%2==0 a%2 a 2 0 {
                a=a/2;
                count++;
            } a=a/2 a a/2 a 2 count++ count sum += count sum count System.out.println(sum) System.out.println System.out System System.out sum String args[] args public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        final int N  = scanner.nextInt();
        final ArrayList<Integer> A = new ArrayList<>();
        int sum = 0;
        for(int i=0; i<N; i++){
            int a = scanner.nextInt();
            int count = 0;
            while(a%2==0){
                a=a/2;
                count++;
            }
            sum += count;
        }
        System.out.println(sum);
    }
}