import java.util.*;

public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	}
}
//end import java.util.*; util.* java public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	}
} Main public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	} main {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n =Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int ans=0 ans 0 count count a; a for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		} int i=0; int i=0; i 0 i<n i n ++i ++i i {
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		} {
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		} a=Integer.parseInt(scan.next()) a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan count=0 count 0 while(a%2==0){
				count++;
				a/=2;
			} a%2==0 a%2 a 2 0 {
				count++;
				a/=2;
			} count++ count a/=2 a 2 ans+=count ans count System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	}
} public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n =Integer.parseInt(scan.next());
		int ans=0, count,a;
		for(int i=0;i<n;++i){
			a=Integer.parseInt(scan.next());
			count=0;
			while(a%2==0){
				count++;
				a/=2;
			}
			ans+=count;
		}
		System.out.print(ans);

	}
}
//end