#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
inline int calc(int x, int y){ return 2 * x * y + x + y; }
int main(){
    int n;
    cin >> n;
    int ans = n;
    for(int i = 0; i < n; i++){
        int k;
        cin >> k;
        for(int x = 1, mod = 3; calc(x, x) <= k; x++, mod += 2){
            if(k % mod == x){
                ans--;
                break;
            }
        }
    }
    cout << ans << endl;
    return 0;
}