import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> a = new ArrayList<>(); a new ArrayList<>() for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a.add(sc.nextInt());
        } {
            a.add(sc.nextInt());
        } a.add(sc.nextInt()) a.add a sc.nextInt() sc.nextInt sc List<Integer> cnt = new ArrayList<>(); cnt new ArrayList<>() for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        } Integer it a {
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        } {
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        } int x = 0; x 0 while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            } it != 0 it 0 {
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            } if(it % 2 != 0){
                    break;
                } it % 2 != 0 it % 2 it 2 0 {
                    break;
                } break; x++ x it /= 2 it 2 cnt.add(x) cnt.add cnt x int sum = 0; sum 0 for(Integer it : cnt){
            sum += it;
        } Integer it cnt {
            sum += it;
        } {
            sum += it;
        } sum += it sum it System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> a = new ArrayList<>();
        for(int i = 0;i < n;i++){
            a.add(sc.nextInt());
        }
        List<Integer> cnt = new ArrayList<>();
        for(Integer it : a){
            int x = 0;
            while(it != 0){
                if(it % 2 != 0){
                    break;
                }
                x++;
                it /= 2;
            }
            cnt.add(x);
        }
        //System.out.println(cnt);
        int sum = 0;
        for(Integer it : cnt){
            sum += it;
        }
        System.out.println(sum);
    }
}
