import java.io.InputStream;
import java.util.Scanner;

public class Main {


	public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	}

} import java.io.InputStream; InputStream java.io import java.util.Scanner; Scanner java.util public class Main {


	public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	}

} Main public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	} main {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	} InputStream inputStream = System.in; inputStream System.in System System.in Scanner sc = new Scanner(inputStream); sc new Scanner(inputStream) String out; out int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc boolean flag=true; flag true int check=0; check 0 int j=0; j 0 int[] N=new int[A]; N new int[A] A for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<A i A i++ i++ i {
        	 N[i]=sc.nextInt();
        } {
        	 N[i]=sc.nextInt();
        } N[i]=sc.nextInt() N[i] N i sc.nextInt() sc.nextInt sc while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        } flag==true flag true {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        } if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}} N[j]%2==0 N[j]%2 N[j] N j 2 0 {N[j]/=2;check++;} N[j]/=2 N[j] N j 2 check++ check {j++;if(j>=A) {flag=false;}} j++ j if(j>=A) {flag=false;} j>=A j A {flag=false;} flag=false flag false System.out.print(check) System.out.print System.out System System.out check String args[] args public class Main {


	public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	}

} public class Main {


	public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	}

} Main
import java.io.InputStream;
import java.util.Scanner;

public class Main {


	public static void main(String args[]) {
        InputStream inputStream = System.in;
        Scanner sc = new Scanner(inputStream);
        String out;
        int A = sc.nextInt();
        boolean flag=true;
        int check=0;
        int j=0;
        int[] N=new int[A];
        for(int i=0;i<A;i++) {
        	 N[i]=sc.nextInt();
        }
        while(flag==true) {
        	if(N[j]%2==0) {N[j]/=2;check++;}
        	else {j++;if(j>=A) {flag=false;}}

        }
        System.out.print(check);
	}

}
