#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const double PI = 3.14159265358979323846; const double EPS = 1e-12; const int INF = 1<<30; typedef pair P; typedef long long ll; typedef unsigned long long ull; int main(){ int n; cin>>n; vector d(n+2); for(int i = 0; i < n; i++) cin>>d[i]; d[n] = 0; d[n+1] = 100LL*INF; sort(d.begin(), d.end()); int res = 0; for(int i = 1; i <= n; i++){ if(d[i-1]!=d[i] && d[i]!=d[i+1]) res++; } cout<