import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int arr[]=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        }
        long ans=0;
        for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        }
        System.out.println(ans);

    }

} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
    public static void main (String[] args)
    {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int arr[]=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        }
        long ans=0;
        for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        }
        System.out.println(ans);

    }

} Main public static void main (String[] args)
    {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int arr[]=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        }
        long ans=0;
        for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        }
        System.out.println(ans);

    } main {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int arr[]=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        }
        long ans=0;
        for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        }
        System.out.println(ans);

    } Scanner in=new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt(); n in.nextInt() in.nextInt in int arr[]=new int[n]; arr new int[n] n for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
            arr[i]=in.nextInt();
        } {
            arr[i]=in.nextInt();
        } arr[i]=in.nextInt() arr[i] arr i in.nextInt() in.nextInt in long ans=0; ans 0 for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        } {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        } int temp=0; temp 0 int t=arr[i]; t arr[i] arr i if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            } t%2==0 t%2 t 2 0 {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            } while (t %2==0) {
                    t = t / 2;
                    temp++;
                } t %2==0 t %2 t 2 0 {
                    t = t / 2;
                    temp++;
                } t = t / 2 t t / 2 t 2 temp++ temp ans+=(long)temp ans (long)temp System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int arr[]=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=in.nextInt();
        }
        long ans=0;
        for (int i = 0; i < n; i++) {
            int temp=0;
            int t=arr[i];
            if(t%2==0) {
                while (t %2==0) {
                    t = t / 2;
                    temp++;
                }
            }
            ans+=(long)temp;
        }
        System.out.println(ans);

    }

}