import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	}
	
	public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	}
	
	public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in long counter = 0; counter 0 for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		} {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		} long num = in.nextLong(); num in.nextLong() in.nextLong in counter += countNumberDividingTwo(num) counter countNumberDividingTwo(num) countNumberDividingTwo num System.out.println(counter) System.out.println System.out System System.out counter String[] args args public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	} countNumberDividingTwo {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	} long counter = 0; counter 0 while(num%2==0) {
			num /= 2;
			counter++;
		} num%2==0 num%2 num 2 0 {
			num /= 2;
			counter++;
		} num /= 2 num 2 counter++ counter return counter; counter long num num public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	}
	
	public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	}
	
	public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		long counter = 0;
		for(int i=0;i<n;i++) {
			long num = in.nextLong();
			counter += countNumberDividingTwo(num);
		}
		System.out.println(counter);

	}
	
	public static long countNumberDividingTwo(long num) {
		long counter = 0;
		while(num%2==0) {
			num /= 2;
			counter++;
		}
		return counter;
	}

}