import java.util.*;
public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    } main {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n =sc.nextInt(); n sc.nextInt() sc.nextInt sc PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder()); pq new PriorityQueue<>(Collections.reverseOrder()) for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        } {
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        } int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if(t%2==0) pq.add(t); t%2==0 t%2 t 2 0 pq.add(t) pq.add pq t int c= 0; c 0 while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        } pq.size()>0 pq.size() pq.size pq 0 {
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        } int r = pq.poll(); r pq.poll() pq.poll pq c++ c r/=2 r 2 if(r%2==0) pq.add(r); r%2==0 r%2 r 2 0 pq.add(r) pq.add pq r System.out.println(c) System.out.println System.out System System.out c String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
        for(int i=0;i<n;i++){
            int t = sc.nextInt();
            if(t%2==0) pq.add(t);
        }
        int c= 0;
        while(pq.size()>0){
            int r = pq.poll();
            c++;
            r/=2;
            if(r%2==0) pq.add(r);
        }
        System.out.println(c);
    }
}
