import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] A = new int[n]; A new int[n] n for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            A[i] = sc.nextInt();
        } {
            A[i] = sc.nextInt();
        } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int[] count = new int[n]; count new int[n] n int div = 0; div 0 int check = 0; check 0 for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        } {
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        } check = A[i] check A[i] A i while(check%2 == 0){
                div++;
                check = check/2;
            } check%2 == 0 check%2 check 2 0 {
                div++;
                check = check/2;
            } div++ div check = check/2 check check/2 check 2 count[i] = div count[i] count i div div = 0 div 0 int sum = 0; sum 0 for(int i = 0; i < n; i++){
            sum = sum + count[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            sum = sum + count[i];
        } {
            sum = sum + count[i];
        } sum = sum + count[i] sum sum + count[i] sum count[i] count i System.out.print(sum) System.out.print System.out System System.out sum String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        int sum = 0;
        for(int i = 0; i < n; i++){
            sum = sum + count[i];
        }
        System.out.print(sum);
    }
}