import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    }
} import java.util.Scanner; Scanner 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];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    } 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 int sum = 0; sum 0 for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        } {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int start = a[i]; start a[i] a i int counter = 0; counter 0 while (start % 2 == 0) {
                counter++;
                start /= 2;
            } start % 2 == 0 start % 2 start 2 0 {
                counter++;
                start /= 2;
            } counter++ counter start /= 2 start 2 sum += counter sum counter System.out.println(sum) System.out.println System.out System System.out sum sc.close() sc.close sc 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];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
            int start = a[i];
            int counter = 0;
            while (start % 2 == 0) {
                counter++;
                start /= 2;
            }
            sum += counter;
        }
        System.out.println(sum);
        sc.close();
    }
}