#include<bits/stdc++.h>
#include <set>
#include<iomanip>
#include<math.h>
#define ll long long
#define MOD (ll)(1e7+7)
#define all(x) (x).begin(), (x).end(
using namespace std;
int readInt() { int x; return cin >> x, x; }
template<typename T> void maximize(T &res, T val) { if (res < val) res = val; }
template<typename T> void minimize(T &res, T val) { if (res > val) res = val; }
void maximize(int &x, int v) { if (x < v) x = v; }
const int LIM = 1e6;
int fre[256] = {};
bool isLatin(char c) { return 'a' <= c && c <= 'z'; }
inline bool isLowLatin(char c) { return 'a' <= c && c <= 'z'; }
inline bool isDigit(char c) { return '0' <= c && c <= '9'; }
int main()
{
int lim = 5e6;
vector<int> div_sum(lim + 1, 0);
for (int i = 1; i <= lim; ++i)
for (int j = i; j <= lim; j += i)
div_sum[j] += i;
vector<bool> check(lim + 1);
for (int i = 0; i <= lim; ++i)
check[i] = (div_sum[i] < i * 2);
int res = 0;
for (int n = readInt(); n--; res += check[readInt()]);
cout << res;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2luY2x1ZGUgPHNldD4KI2luY2x1ZGU8aW9tYW5pcD4KI2luY2x1ZGU8bWF0aC5oPgojZGVmaW5lIGxsIGxvbmcgbG9uZwojZGVmaW5lIE1PRCAobGwpKDFlNys3KQojZGVmaW5lIGFsbCh4KSAoeCkuYmVnaW4oKSwgKHgpLmVuZCgKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IHJlYWRJbnQoKSB7IGludCB4OyByZXR1cm4gY2luID4+IHgsIHg7IH0KdGVtcGxhdGU8dHlwZW5hbWUgVD4gdm9pZCBtYXhpbWl6ZShUICZyZXMsIFQgdmFsKSB7IGlmIChyZXMgPCB2YWwpIHJlcyA9IHZhbDsgfQp0ZW1wbGF0ZTx0eXBlbmFtZSBUPiB2b2lkIG1pbmltaXplKFQgJnJlcywgVCB2YWwpIHsgaWYgKHJlcyA+IHZhbCkgcmVzID0gdmFsOyB9CnZvaWQgbWF4aW1pemUoaW50ICZ4LCBpbnQgdikgeyBpZiAoeCA8IHYpIHggPSB2OyB9CmNvbnN0IGludCBMSU0gPSAxZTY7CmludCBmcmVbMjU2XSA9IHt9Owpib29sIGlzTGF0aW4oY2hhciBjKSB7IHJldHVybiAnYScgPD0gYyAmJiBjIDw9ICd6JzsgfQppbmxpbmUgYm9vbCBpc0xvd0xhdGluKGNoYXIgYykgeyByZXR1cm4gJ2EnIDw9IGMgJiYgYyA8PSAneic7IH0KaW5saW5lIGJvb2wgaXNEaWdpdChjaGFyIGMpICAgIHsgcmV0dXJuICcwJyA8PSBjICYmIGMgPD0gJzknOyB9CmludCBtYWluKCkKewogICAgaW50IGxpbSA9IDVlNjsKICAgIHZlY3RvcjxpbnQ+IGRpdl9zdW0obGltICsgMSwgMCk7CiAgICBmb3IgKGludCBpID0gMTsgaSA8PSBsaW07ICsraSkKICAgICAgICBmb3IgKGludCBqID0gaTsgaiA8PSBsaW07IGogKz0gaSkgCiAgICAgICAgICAgIGRpdl9zdW1bal0gKz0gaTsgICAgICAgICAgICAgCgogICAgdmVjdG9yPGJvb2w+IGNoZWNrKGxpbSArIDEpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPD0gbGltOyArK2kpCiAgICAgICAgY2hlY2tbaV0gPSAoZGl2X3N1bVtpXSA8IGkgKiAyKTsKCiAgICBpbnQgcmVzID0gMDsKICAgIGZvciAoaW50IG4gPSByZWFkSW50KCk7IG4tLTsgcmVzICs9IGNoZWNrW3JlYWRJbnQoKV0pOyAKCiAgICBjb3V0IDw8IHJlczsKICAgIHJldHVybiAwOwp9
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include<bits/stdc++.h>
^
Main.java:2: error: illegal character: '#'
#include <set>
^
Main.java:3: error: illegal character: '#'
#include<iomanip>
^
Main.java:4: error: illegal character: '#'
#include<math.h>
^
Main.java:5: error: illegal character: '#'
#define ll long long
^
Main.java:6: error: illegal character: '#'
#define MOD (ll)(1e7+7)
^
Main.java:7: error: illegal character: '#'
#define all(x) (x).begin(), (x).end(
^
Main.java:9: error: class, interface, or enum expected
int readInt() { int x; return cin >> x, x; }
^
Main.java:9: error: class, interface, or enum expected
int readInt() { int x; return cin >> x, x; }
^
Main.java:9: error: class, interface, or enum expected
int readInt() { int x; return cin >> x, x; }
^
Main.java:10: error: class, interface, or enum expected
template<typename T> void maximize(T &res, T val) { if (res < val) res = val; }
^
Main.java:11: error: class, interface, or enum expected
template<typename T> void minimize(T &res, T val) { if (res > val) res = val; }
^
Main.java:12: error: class, interface, or enum expected
void maximize(int &x, int v) { if (x < v) x = v; }
^
Main.java:14: error: class, interface, or enum expected
int fre[256] = {};
^
Main.java:15: error: class, interface, or enum expected
bool isLatin(char c) { return 'a' <= c && c <= 'z'; }
^
Main.java:15: error: class, interface, or enum expected
bool isLatin(char c) { return 'a' <= c && c <= 'z'; }
^
Main.java:16: error: class, interface, or enum expected
inline bool isLowLatin(char c) { return 'a' <= c && c <= 'z'; }
^
Main.java:17: error: class, interface, or enum expected
inline bool isDigit(char c) { return '0' <= c && c <= '9'; }
^
Main.java:21: error: class, interface, or enum expected
vector<int> div_sum(lim + 1, 0);
^
Main.java:22: error: class, interface, or enum expected
for (int i = 1; i <= lim; ++i)
^
Main.java:22: error: class, interface, or enum expected
for (int i = 1; i <= lim; ++i)
^
Main.java:22: error: class, interface, or enum expected
for (int i = 1; i <= lim; ++i)
^
Main.java:23: error: class, interface, or enum expected
for (int j = i; j <= lim; j += i)
^
Main.java:23: error: class, interface, or enum expected
for (int j = i; j <= lim; j += i)
^
Main.java:26: error: class, interface, or enum expected
vector<bool> check(lim + 1);
^
Main.java:27: error: class, interface, or enum expected
for (int i = 0; i <= lim; ++i)
^
Main.java:27: error: class, interface, or enum expected
for (int i = 0; i <= lim; ++i)
^
Main.java:27: error: class, interface, or enum expected
for (int i = 0; i <= lim; ++i)
^
Main.java:30: error: class, interface, or enum expected
int res = 0;
^
Main.java:31: error: class, interface, or enum expected
for (int n = readInt(); n--; res += check[readInt()]);
^
Main.java:31: error: class, interface, or enum expected
for (int n = readInt(); n--; res += check[readInt()]);
^
Main.java:31: error: class, interface, or enum expected
for (int n = readInt(); n--; res += check[readInt()]);
^
Main.java:33: error: class, interface, or enum expected
cout << res;
^
Main.java:34: error: class, interface, or enum expected
return 0;
^
Main.java:35: error: class, interface, or enum expected
}
^
36 errors