import java.util.*;

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

public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		int d=sc.nextInt();
		int a,sum=0;
		for(int i=0;i<d;i++)
		{
			a=sc.nextInt();
		
			int count = 0;
			while(a%2==0)
			{
				a=a/2;
				count++;
			}
			sum+=count;
		}
		System.out.println(sum);
		
	}
}