function Main(input) {
  input = input.split('\n')
  var N = parseInt(input[0])
  var a = input[1].split(' ').map(x => parseInt(x))

  var answer = 0

  for (var i = 0; i < N; i++) {
    while (Number.isInteger((a[i] = a[i] / 2))) {
      answer++
    }
  }

  console.log(answer)
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))
