import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        long[] a = new long[N];
        int cont = 0;
        for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        }
        int ans = 0;
        for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        long[] a = new long[N];
        int cont = 0;
        for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        }
        int ans = 0;
        for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        long[] a = new long[N];
        int cont = 0;
        for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        }
        int ans = 0;
        for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        }
        System.out.println(ans);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        long[] a = new long[N];
        int cont = 0;
        for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        }
        int ans = 0;
        for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        }
        System.out.println(ans);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int N = Integer.parseInt(str); N Integer.parseInt(str) Integer.parseInt Integer str str = br.readLine() str br.readLine() br.readLine br long[] a = new long[N]; a new long[N] N int cont = 0; cont 0 for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        } String s str.split(" ") str.split str " " {
            a[cont] = Integer.parseInt(s);
            cont++;
        } {
            a[cont] = Integer.parseInt(s);
            cont++;
        } a[cont] = Integer.parseInt(s) a[cont] a cont Integer.parseInt(s) Integer.parseInt Integer s cont++ cont int ans = 0; ans 0 for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        } long i a {
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        } {
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        } while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            } i%2==0 i%2 i 2 0 {
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            } if (i%2==0){
                    i/=2;
                    ans++;
                } i%2==0 i%2 i 2 0 {
                    i/=2;
                    ans++;
                } i/=2 i 2 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        str = br.readLine();
        long[] a = new long[N];
        int cont = 0;
        for (String s:str.split(" ")){
            a[cont] = Integer.parseInt(s);
            cont++;
        }
        int ans = 0;
        for (long i:a){
            while (i%2==0){
                if (i%2==0){
                    i/=2;
                    ans++;
                }
            }
        }
        System.out.println(ans);
    }
}