import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		long ans = 0;
		for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		}
			System.out.println(ans);
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		long ans = 0;
		for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		}
			System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		long ans = 0;
		for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		}
			System.out.println(ans);
	} main {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		long ans = 0;
		for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		}
			System.out.println(ans);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s long ans = 0; ans 0 for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		} {
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		} int val = s.nextInt(); val s.nextInt() s.nextInt s int ele = val; ele val int count = 0; count 0 while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			} true {
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			} if(ele%2!=0)
					break; ele%2!=0 ele%2 ele 2 0 break; ele = ele/2 ele ele/2 ele 2 count++ count ans += count ans count System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		long ans = 0;
		for(int i = 0;i < n;i++){
			int val = s.nextInt();
			int ele = val;
			int count = 0;
			while(true){
				if(ele%2!=0)
					break;
				ele = ele/2;
				count++;
			}
			ans += count;
		}
			System.out.println(ans);
	}
}
