import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    }
    public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    }
    public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    }
    public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    }
    public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    } main {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan long[] a = new long[N]; a new long[N] N for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            a[i] = scan.nextInt();
        } {
            a[i] = scan.nextInt();
        } a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan System.out.println(solve(a)) System.out.println System.out System System.out solve(a) solve a String[] args args public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    } solve {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    } int answer = 0; answer 0 for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            answer += sub(a[i]);
        } {
            answer += sub(a[i]);
        } answer += sub(a[i]) answer sub(a[i]) sub a[i] a i return answer; answer long[] a a public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    } sub {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    } int count = 0; count 0 while (x % 2 == 0) {
            count += 1;
            x /= 2;
        } x % 2 == 0 x % 2 x 2 0 {
            count += 1;
            x /= 2;
        } count += 1 count 1 x /= 2 x 2 return count; count long x x public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    }
    public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    }
    public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    }
    public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    }
    public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        long[] a = new long[N];
        for (int i = 0; i < N; i++) {
            a[i] = scan.nextInt();
        }
        System.out.println(solve(a));
    }
    public static long solve(long[] a) {
        int answer = 0;
        for (int i = 0; i < a.length; i++) {
            answer += sub(a[i]);
        }
        return answer;
    }
    public static long sub(long x) {
        int count = 0;
        while (x % 2 == 0) {
            count += 1;
            x /= 2;
        }
        return count;
    }
}
