import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int counter = sc.nextInt();
    
    int answer = 0;
    for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    }
    System.out.println(answer);
  }
  
  public static int check(long number){
    int ans = 0;
    while(number%2 == 0) {
      ans++;
      number = number/2;
    }
    return ans++;
  }
} import java.util.*; util.* java class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int counter = sc.nextInt();
    
    int answer = 0;
    for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    }
    System.out.println(answer);
  }
  
  public static int check(long number){
    int ans = 0;
    while(number%2 == 0) {
      ans++;
      number = number/2;
    }
    return ans++;
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int counter = sc.nextInt();
    
    int answer = 0;
    for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    }
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int counter = sc.nextInt();
    
    int answer = 0;
    for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    }
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int counter = sc.nextInt(); counter sc.nextInt() sc.nextInt sc int answer = 0; answer 0 for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    } int i = 0; int i = 0; i 0 i<counter i counter i++ i++ i {
      answer += check(sc.nextInt());
    } {
      answer += check(sc.nextInt());
    } answer += check(sc.nextInt()) answer check(sc.nextInt()) check sc.nextInt() sc.nextInt sc System.out.println(answer) System.out.println System.out System System.out answer String args[] args public static int check(long number){
    int ans = 0;
    while(number%2 == 0) {
      ans++;
      number = number/2;
    }
    return ans++;
  } check {
    int ans = 0;
    while(number%2 == 0) {
      ans++;
      number = number/2;
    }
    return ans++;
  } int ans = 0; ans 0 while(number%2 == 0) {
      ans++;
      number = number/2;
    } number%2 == 0 number%2 number 2 0 {
      ans++;
      number = number/2;
    } ans++ ans number = number/2 number number/2 number 2 return ans++; ans++ ans long number number
import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int counter = sc.nextInt();
    
    int answer = 0;
    for(int i = 0;i<counter;i++){
      answer += check(sc.nextInt());
    }
    System.out.println(answer);
  }
  
  public static int check(long number){
    int ans = 0;
    while(number%2 == 0) {
      ans++;
      number = number/2;
    }
    return ans++;
  }
}