import java.util.Scanner;


public class Main {
	static int N;
	static long[] T;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int N;
	static long[] T;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	}
} Main static int N; N static long[] T; T public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	} main {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc T = new long[N] T new long[N] N for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
			 T[i]= sc.nextInt();
		 } {
			 T[i]= sc.nextInt();
		 } T[i]= sc.nextInt() T[i] T i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int count = 0 ; count 0 int counti = 0 ; counti 0 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		} long m T {
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		} {
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		} count += counti count counti for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 } int i = 1; int i = 1; i 1 i < 35 i 35 i++ i++ i {
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 } {
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 } long p = (long)Math.pow(2, i); p (long)Math.pow(2, i) Math.pow Math 2 i if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 } m%p==0 m%p m p 0 {
					 counti = i;
					// System.out.println("counti : "+counti);
				 } counti = i counti i if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 } m%2 !=0 m%2 m 2 0 {
					 counti = 0 ;
					 break;
				 } counti = 0 counti 0 break; {
					 break;
				 } break; count += counti count counti System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	static int N;
	static long[] T;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	}
} public class Main {
	static int N;
	static long[] T;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	}
} Main
import java.util.Scanner;


public class Main {
	static int N;
	static long[] T;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		 N = sc.nextInt();
		 T = new long[N];
		 for(int i = 0 ; i < N ; i++){
			 T[i]= sc.nextInt();
		 }
		 sc.close();


		 int count = 0 ;
		 int counti = 0 ;


		 for (long m : T){
			 //System.out.println("calc : " + m);
			 count += counti;
			 //System.out.println("count :"+count);

			 for(int i = 1; i < 35 ; i++){
				 long p = (long)Math.pow(2, i);

				 if(m%p==0){
					 counti = i;
					// System.out.println("counti : "+counti);
				 }
				 else if(m%2 !=0){
					 counti = 0 ;
					 break;
				 }


				 else {
					 break;
				 }
			 }
		}
		 count += counti;
		 System.out.println(count);
	}
}