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

public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    }

    public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    }

    public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    }
} Main public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    } main {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int result = 0; result 0 int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = scanner.nextInt();
        } {
            a[i] = scanner.nextInt();
        } a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            result += factor2(a[i]);
        } {
            result += factor2(a[i]);
        } result += factor2(a[i]) result factor2(a[i]) factor2 a[i] a i System.out.println(result) System.out.println System.out System System.out result String[] args args public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    } factor2 {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    } int cnt = 0; cnt 0 while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        } true {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        } if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            } f % 2 == 0 f % 2 f 2 0 {
                f = f/2;
                cnt++;
            } f = f/2 f f/2 f 2 cnt++ cnt {
                return cnt;
            } return cnt; cnt int f f public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    }

    public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    }

    public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int result = 0;

        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }

        for (int i = 0; i < n; i++) {
            result += factor2(a[i]);
        }


        System.out.println(result);


    }

    public static int factor2(int f) {
        int cnt = 0;
        while (true) {
            if (f % 2 == 0) {
                f = f/2;
                cnt++;
            } else {
                return cnt;
            }
        }
    }
}