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

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

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a[] = new int[n];
    for(int i=0;i<n;i++){
      a[i] = sc.nextInt();
    }
    int cnt[] = new int[n];
    for(int i=0;i<n;i++){
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    }
    int answer =0;
    for(int i=0;i<n;i++){
      answer = answer + cnt[i];
    }
    System.out.println(answer);
    
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a[] = new int[n];
    for(int i=0;i<n;i++){
      a[i] = sc.nextInt();
    }
    int cnt[] = new int[n];
    for(int i=0;i<n;i++){
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    }
    int answer =0;
    for(int i=0;i<n;i++){
      answer = answer + cnt[i];
    }
    System.out.println(answer);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[] = new int[n]; a new int[n] n for(int i=0;i<n;i++){
      a[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      a[i] = sc.nextInt();
    } {
      a[i] = sc.nextInt();
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int cnt[] = new int[n]; cnt new int[n] n for(int i=0;i<n;i++){
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    } {
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    } while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      } a[i]%2==0 a[i]%2 a[i] a i 2 0 {
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      } a[i]=a[i]/2 a[i] a i a[i]/2 a[i] a i 2 cnt[i]=cnt[i]+1 cnt[i] cnt i cnt[i]+1 cnt[i] cnt i 1 int answer =0; answer 0 for(int i=0;i<n;i++){
      answer = answer + cnt[i];
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      answer = answer + cnt[i];
    } {
      answer = answer + cnt[i];
    } answer = answer + cnt[i] answer answer + cnt[i] answer cnt[i] cnt i System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a[] = new int[n];
    for(int i=0;i<n;i++){
      a[i] = sc.nextInt();
    }
    int cnt[] = new int[n];
    for(int i=0;i<n;i++){
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    }
    int answer =0;
    for(int i=0;i<n;i++){
      answer = answer + cnt[i];
    }
    System.out.println(answer);
    
  }
  

  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a[] = new int[n];
    for(int i=0;i<n;i++){
      a[i] = sc.nextInt();
    }
    int cnt[] = new int[n];
    for(int i=0;i<n;i++){
      while(a[i]%2==0){
        a[i]=a[i]/2;
        cnt[i]=cnt[i]+1;
      }
    }
    int answer =0;
    for(int i=0;i<n;i++){
      answer = answer + cnt[i];
    }
    System.out.println(answer);
    
  }
  

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

  
}