import java.util.*;


public class Main {
    static int answer;
    static int N;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    }

    public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    }
} import java.util.*; util.* java public class Main {
    static int answer;
    static int N;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    }

    public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    }
} Main static int answer; answer static int N; N public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = Integer.parseInt(sc.nextLine()) N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] str = sc.nextLine().split("[\\s]+"); str sc.nextLine().split("[\\s]+") sc.nextLine().split sc.nextLine() sc.nextLine sc "[\\s]+" int[] inputs = new int[N]; inputs new int[N] N int count = 0; count 0 for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          inputs[i] =Integer.parseInt(str[i]);
        } {
          inputs[i] =Integer.parseInt(str[i]);
        } inputs[i] =Integer.parseInt(str[i]) inputs[i] inputs i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          count += hoge(inputs[i],0);
        } {
          count += hoge(inputs[i],0);
        } count += hoge(inputs[i],0) count hoge(inputs[i],0) hoge inputs[i] inputs i 0 System.out.println(count) System.out.println System.out System System.out count String[] args args public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    } hoge {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    } if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      } x % 2 == 0 x % 2 x 2 0 {
        return hoge(x/2,count + 1);
      } return hoge(x/2,count + 1); hoge(x/2,count + 1) hoge x/2 x 2 count + 1 count 1 return count; count int x x int count count public class Main {
    static int answer;
    static int N;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    }

    public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    }
} public class Main {
    static int answer;
    static int N;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    }

    public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    }
} Main
import java.util.*;


public class Main {
    static int answer;
    static int N;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        N = Integer.parseInt(sc.nextLine());
        String[] str = sc.nextLine().split("[\\s]+");
        int[] inputs = new int[N];
        int count = 0;
        for(int i = 0; i < N ; i++) {
          inputs[i] =Integer.parseInt(str[i]);
        }

        for(int i = 0; i < N; i++) {
          count += hoge(inputs[i],0);
        }

        System.out.println(count);
    }

    public static int hoge(int x,int count) {
      if(x % 2 == 0) {
        return hoge(x/2,count + 1);
      }
      return count;
    }
}
