import java.util.ArrayList;
import java.util.Collections;
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 = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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 = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Long> a = new ArrayList<>(); a new ArrayList<>() for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        } {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        } long temp = Long.parseLong(sc.next()); temp Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc if (temp % 2 == 0) {
                a.add(temp);
            } temp % 2 == 0 temp % 2 temp 2 0 {
                a.add(temp);
            } a.add(temp) a.add a temp if (a.size() == 0) {
            System.out.println(0);
            return;
        } a.size() == 0 a.size() a.size a 0 {
            System.out.println(0);
            return;
        } System.out.println(0) System.out.println System.out System System.out 0 return; Collections.sort(a) Collections.sort Collections a int ans = 0; ans 0 for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        } int i = 0; int i = 0; i 0 i < a.size() i a.size() a.size a i++ i++ i {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        } {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        } while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            } a.get(i) % 2 == 0 a.get(i) % 2 a.get(i) a.get a i 2 0 {
                ans++;
                a.set(i, a.get(i) / 2);
            } ans++ ans a.set(i, a.get(i) / 2) a.set a i a.get(i) / 2 a.get(i) a.get a i 2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
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 = Integer.parseInt(sc.next());
        List<Long> a = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long temp = Long.parseLong(sc.next());
            if (temp % 2 == 0) {
                a.add(temp);
            }
        }
        if (a.size() == 0) {
            System.out.println(0);
            return;
        }
        Collections.sort(a);
        int ans = 0;
        for (int i = 0; i < a.size(); i++) {
            while (a.get(i) % 2 == 0) {
                ans++;
                a.set(i, a.get(i) / 2);
            }
        }
        System.out.println(ans);
    }
}