import java.util.Scanner;

public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  }
  public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  }
}
   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();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  }
  public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Long ans = 0L; ans 0L for(int i =0;i<N;i++){ans += pow(sc.nextLong());} int i =0; int i =0; i 0 i<N i N i++ i++ i {ans += pow(sc.nextLong());} {ans += pow(sc.nextLong());} ans += pow(sc.nextLong()) ans pow(sc.nextLong()) pow sc.nextLong() sc.nextLong sc System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  } pow {
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  } Long ret = 0L; ret 0L while(a%2==0){
      ret+=1;
      a = a/2;
    } a%2==0 a%2 a 2 0 {
      ret+=1;
      a = a/2;
    } ret+=1 ret 1 a = a/2 a a/2 a 2 return  ret; ret Long a a public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  }
  public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  }
} public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  }
  public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  }
} Main
import java.util.Scanner;

public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Long ans = 0L;
    for(int i =0;i<N;i++){ans += pow(sc.nextLong());}
    System.out.println(ans);
    sc.close();
  }
  public static Long pow(Long a){
    Long ret = 0L;
    while(a%2==0){
      ret+=1;
      a = a/2;
    }
    return  ret;
  }
}
  