integer N
integer,allocatable,dimension(:)::a
integer ans
read*,N
allocate(a(N))
read*,a

ans=0
do i=1,N
  do while(and(a(i),1)==0)
    ans=ans+1
    a(i)=rshift(a(i),1)
  end do
end do
print"(i0)",ans
end