program taka
implicit none
integer:: n,i,j,b,d,count
integer,allocatable,dimension(:):: a
 
read(5,*) n
allocate(a(n))
read(5,*) (a(i),i=1,n)

count=0

do j=1,n
  d=a(j)
   do while(mod(d,2)==0)
    count=count+1
    d=d/2
   end do
end do

write(6,*) count
 
end program taka