import java.util.Scanner;

class C {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        final int[] a = new int[N];
        for(int i = 0; i < N; i++)
            a[i] = sc.nextInt();
        int ans = 0;
        for(int i = 0; i < N; i++)
            ans += cnt2(a[i]);
        System.out.println(ans);
    }

    static int cnt2(int a) {
        int ret = 0;
        while(a % 2 == 0) {
            ret++;
            a >>= 1;
        }
        return ret;
    }
}
public class Main {
    public static void main(String...args) {
        C.main();
    }
} import java.util.Scanner; Scanner java.util class C {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        final int[] a = new int[N];
        for(int i = 0; i < N; i++)
            a[i] = sc.nextInt();
        int ans = 0;
        for(int i = 0; i < N; i++)
            ans += cnt2(a[i]);
        System.out.println(ans);
    }

    static int cnt2(int a) {
        int ret = 0;
        while(a % 2 == 0) {
            ret++;
            a >>= 1;
        }
        return ret;
    }
} C public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        final int[] a = new int[N];
        for(int i = 0; i < N; i++)
            a[i] = sc.nextInt();
        int ans = 0;
        for(int i = 0; i < N; i++)
            ans += cnt2(a[i]);
        System.out.println(ans);
    } main {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        final int[] a = new int[N];
        for(int i = 0; i < N; i++)
            a[i] = sc.nextInt();
        int ans = 0;
        for(int i = 0; i < N; i++)
            ans += cnt2(a[i]);
        System.out.println(ans);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc final 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] a i sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i = 0; i < N; i++)
            ans += cnt2(a[i]); int i = 0; int i = 0; i 0 i < N i N i++ i++ i ans += cnt2(a[i]); ans += cnt2(a[i]) ans cnt2(a[i]) cnt2 a[i] a i System.out.println(ans) System.out.println System.out System System.out ans String... args args static int cnt2(int a) {
        int ret = 0;
        while(a % 2 == 0) {
            ret++;
            a >>= 1;
        }
        return ret;
    } cnt2 {
        int ret = 0;
        while(a % 2 == 0) {
            ret++;
            a >>= 1;
        }
        return ret;
    } int ret = 0; ret 0 while(a % 2 == 0) {
            ret++;
            a >>= 1;
        } a % 2 == 0 a % 2 a 2 0 {
            ret++;
            a >>= 1;
        } ret++ ret a >>= 1 a 1 return ret; ret int a a public class Main {
    public static void main(String...args) {
        C.main();
    }
} Main public static void main(String...args) {
        C.main();
    } main {
        C.main();
    } C.main() C.main C String...args args public class Main {
    public static void main(String...args) {
        C.main();
    }
} public class Main {
    public static void main(String...args) {
        C.main();
    }
} Main
import java.util.Scanner;

class C {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        final int[] a = new int[N];
        for(int i = 0; i < N; i++)
            a[i] = sc.nextInt();
        int ans = 0;
        for(int i = 0; i < N; i++)
            ans += cnt2(a[i]);
        System.out.println(ans);
    }

    static int cnt2(int a) {
        int ret = 0;
        while(a % 2 == 0) {
            ret++;
            a >>= 1;
        }
        return ret;
    }
}
public class Main {
    public static void main(String...args) {
        C.main();
    }
}