import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    }
    static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    }
    static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc long[] a = new long[N]; a new long[N] N int count = 0; count 0 for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        } {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        } a[i] = Long.parseLong(sc.next()) a[i] a i Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc count += count2(a[i]) count count2(a[i]) count2 a[i] a i System.out.println(count) System.out.println System.out System System.out count String[] args args static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    } count2 {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    } int count = 0; count 0 if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        } a % 2 != 0 a % 2 a 2 0 {
            return count;
        } return count; count {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        } while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            } true {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            } a /= 2 a 2 count++ count if(a % 2 != 0) {
                    return count;
                } a % 2 != 0 a % 2 a 2 0 {
                    return count;
                } return count; count long a a public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    }
    static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    }
    static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        long[] a = new long[N];
        int count = 0;
        for(int i=0; i<N; i++) {
            a[i] = Long.parseLong(sc.next());
            count += count2(a[i]);
        }
        System.out.println(count);
    }
    static int count2(long a) {
        int count = 0;
        if(a % 2 != 0) {
            return count;
        }else {
            while(true) {
                a /= 2;
                count++;
                if(a % 2 != 0) {
                    return count;
                }
            }
        }
    }
}
