import java.util.Scanner;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	}
} Main public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans=0; ans 0 for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		} {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		} int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			} ; {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			} {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			} if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				} m%2==0 m%2 m 2 0 {
					m/=2;ans++;
				} m/=2 m 2 ans++ ans {
					break;
				} break; System.out.println(ans) System.out.println System.out System System.out ans String[]args args public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	}
} public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int ans=0;
		for(int i=0;i<n;i++) {
			int m=sc.nextInt();
			for(;;) {
				if(m%2==0) {
					m/=2;ans++;
				}else {
					break;
				}
			}
		}
	System.out.println(ans);
	}
}