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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  }
  
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  }
  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  } main {
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Long> a = new ArrayList<Long>(); a new ArrayList<Long>() int fe = -1; fe -1 1 int count=0; count 0 for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    } {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    } a.add(sc.nextLong()) a.add a sc.nextLong() sc.nextLong sc if(a.get(i)%2 == 0) {
    		fe = i;
    	} a.get(i)%2 == 0 a.get(i)%2 a.get(i) a.get a i 2 0 {
    		fe = i;
    	} fe = i fe i sc.close() sc.close sc long j = 0; j 0 for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    } int i=fe; int i=fe; i fe i>=0 i 0 i-- i-- i {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    } {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    } j = a.get(i) j a.get(i) a.get a i while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	} j%2==0 j%2 j 2 0 {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	} count++ count j /= 2 j 2 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  }
  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  }
  
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    List<Long> a = new ArrayList<Long>();
    int fe = -1; //最後の偶数の位置
    int count=0;
    for(int i=0;i<n;i++) {
    	a.add(sc.nextLong());
    	if(a.get(i)%2 == 0) {
    		fe = i;
    	}
    }
    sc.close();
    long j = 0;
    for(int i=fe;i>=0;i--) {
    	j = a.get(i);
    	while(j%2==0) {
    		count++;
    		j /= 2;
    		//System.out.print(j+", ");
    	}
    	//System.out.println("");
    }
    System.out.println(count);
    
  }
  
}