program ABC100C
    implicit none
    integer(8)::N,i
    integer(8)::result=0
    integer(8),allocatable,dimension(:)::A

    read(5,*)N
    allocate(A(N))
    read(5,*)(A(i),i=1,N)

    do i=1,N
        do
            if(mod(A(i),2)==1)then
                exit
            else
                A(i)=A(i)/2
                result=result+1
            end if
        end do
    end do

    print'(i0)',result
    
end program ABC100C