program main
	integer N, counter, i, j
	integer(8), allocatable :: a(:)
	read(*, *) N
	allocate(a(1: N))
	read(*, *) a(1: N)
	counter = 0
	do i = 1, N
		do
			if(mod(a(i), 2) == 0) then
				counter = counter + 1
				a(i) = a(i) / 2
			else
				exit
			end if
		end do
	end do
	write(*, *) counter
end program main