int n;
ll lista[MAXS];
int how[MAXS];

int main(){
  cin >> n;
  for(int i = 0 ;i < n; ++i){
    cin >> lista[i];
  }
  sort(lista, lista+n);
  int ans = 0;
  for(int i = 0; i < n; ++i){
    while(lista[i] % 2 == 0 && lista[i] > 0){
      lista[i] /= 2;
      how[i]++;
    }
  }
 
  for(int i = 0;i < n; ++i){
    ans +=how[i];
  }
  cout << ans;
}