import java.util.Scanner;

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

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

