import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	}

	static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util 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();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	}

	static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	} main {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Long> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			list.add(sc.nextLong());
		} {
			list.add(sc.nextLong());
		} list.add(sc.nextLong()) list.add list sc.nextLong() sc.nextLong sc sc.close() sc.close sc solve(list) solve list String[] args args static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	} solve {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	} int count = 0; count 0 while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		} list.size() > 0 list.size() list.size list 0 {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		} for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			} {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			} long n = list.get(i); n list.get(i) list.get list i if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				} n % 2 != 0 n % 2 n 2 0 {
					list.remove(i);
				} list.remove(i) list.remove list i {
					list.add(n / 2);
					list.remove(i);
					count++;
				} list.add(n / 2) list.add list n / 2 n 2 list.remove(i) list.remove list i count++ count System.out.println(count) System.out.println System.out System System.out count List<Long> list list public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	}

	static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	}

	static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		List<Long> list = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextLong());
		}
		sc.close();

		solve(list);

	}

	static void solve(List<Long> list) {

		int count = 0;

		while (list.size() > 0) {

			for (int i = 0; i < list.size(); i++) {
				long n = list.get(i);
				if (n % 2 != 0) {
					list.remove(i);
				} else {
					list.add(n / 2);
					list.remove(i);
					count++;
				}
			}
		}
		System.out.println(count);

	}
}