#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, b = 0;
  vector<int> c(n, 0);
  for (int i = 0; i < n; i++) {
    cin >> c[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = 1; j < c[i] / 2; j++) {
      a = c[i] % j;
      if (a == 0) {
        b++;
      }
    }
  }
  cout << b << endl;
  return 0;
}
