function Main(s){
	s=s.split(/\n|\s/);
	s.forEach(function(e,i,a){a[i]=Number(a[i]);});
	
	var a=0;
	for(var i=1;i<=s[0];i=(i+1)|0){
		while(s[i]%2==0){
			s[i]/=2;
			a++;
		}
	}
	
	console.log(a);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));