import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long[] a = new long[N]; a new long[N] N long ans = 0; ans 0 for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		} {
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		} a[i] = sc.nextLong() a[i] a i sc.nextLong() sc.nextLong sc long count = 0; count 0 for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			} int j=0; int j=0; j 0 j<30 j 30 j++ j++ j {
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			} {
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			} if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				} a[i]%2!=0 a[i]%2 a[i] a i 2 0 {
					a[i] = count;
					break;
				} a[i] = count a[i] a i count break; {
					a[i] = a[i]/2;                  
					count++;
				} a[i] = a[i]/2 a[i] a i a[i]/2 a[i] a i 2 count++ count ans += a[i] ans a[i] a i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		long[] a = new long[N];
		long ans = 0;
		for( int i=0; i<N; i++ ){
			a[i] = sc.nextLong();
			long count = 0;
			for( int j=0; j<30; j++ ){
				if( a[i]%2!=0 ){
					a[i] = count;
					break;
				}else{
					a[i] = a[i]/2;                  
					count++;
				}
			}
			ans += a[i];
		}
		System.out.println(ans);
	}
}
