import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		}
	} 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[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		}
	} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n int bit = 0; bit 0 for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = bit|sc.nextInt();
		} {
			a[i] = bit|sc.nextInt();
		} a[i] = bit|sc.nextInt() a[i] a i bit|sc.nextInt() bit sc.nextInt() sc.nextInt sc int maxBit = 0; maxBit 0 for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			} {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			} maxBit += Integer.numberOfTrailingZeros(a[i]) maxBit Integer.numberOfTrailingZeros(a[i]) Integer.numberOfTrailingZeros Integer a[i] a i System.out.println(maxBit) System.out.println System.out System System.out maxBit String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		}
	} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		}
	} 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[] a = new int[n];
		int bit = 0;
		for(int i = 0; i < n; i++) {
			a[i] = bit|sc.nextInt();
		}
		int maxBit = 0;
		for(int i = 0;i < n; i++) {
			maxBit += Integer.numberOfTrailingZeros(a[i]);
			}
		System.out.println(maxBit);
		}
	}