import java.util.*;
public class Main {
    public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    }
} import java.util.*; util.* java public class Main {
    public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    }
} Main public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    } howManyTwos {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    } int res = 0; res 0 while (a % 2 == 0) {
            a /= 2;
            res++;
        } a % 2 == 0 a % 2 a 2 0 {
            a /= 2;
            res++;
        } a /= 2 a 2 res++ res return res; res int a a public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int twos = 0; twos 0 for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        } {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc twos += howManyTwos(a) twos howManyTwos(a) howManyTwos a System.out.println(twos) System.out.println System.out System System.out twos String[] args args public class Main {
    public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    }
} public class Main {
    public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    }
} Main
import java.util.*;
public class Main {
    public static int howManyTwos(int a) {
        int res = 0;
        while (a % 2 == 0) {
            a /= 2;
            res++;
        }
        return res;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int twos = 0;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            twos += howManyTwos(a);
        }
        System.out.println(twos);
    }
}