import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	}

	public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	}

	public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	}
} Main public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	} main {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int c= 0; c 0 for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    } {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    } long a = Long.parseLong(scanner.next()); a Long.parseLong(scanner.next()) Long.parseLong Long scanner.next() scanner.next scanner int ad = getDigit(a); ad getDigit(a) getDigit a c += ad c ad System.out.print(c) System.out.print System.out System System.out c String[] args args public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	} getDigit {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	} int c = 0; c 0 while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    } n % 2 == 0 n % 2 n 2 0 {
	    	c++;
	    	n = n/2;
	    } c++ c n = n/2 n n/2 n 2 return c; c long n n public class Main {

	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	}

	public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	}
} public class Main {

	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	}

	public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    int c= 0;
	    for(int i = 0; i < N; i++) {
	        long a = Long.parseLong(scanner.next());
	        int ad = getDigit(a);
	        c += ad;
	    }

        System.out.print(c);
	}

	public static int getDigit(long n) {
	    int c = 0;
		while (n % 2 == 0) {
	    	c++;
	    	n = n/2;
	    }
		return c;
	}
}
