#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef pair pii; #define MP make_pair #define PB push_back #define inf 1000000007 #define rep(i,n) for(int i = 0; i < (int)(n); ++i) #define all(x) (x).begin(),(x).end() template void Fill(A (&array)[N], const T &val){ std::fill( (T*)array, (T*)(array+N), val ); } template inline bool chmax(T &a, T b){ if(a inline bool chmin(T &a, T b){ if(a>b){ a = b; return true; } return false; } int main(){ int n; cin >> n; vector a(n),b(n); rep(i,n)cin >> a[i] >> b[i]; priority_queue > > pq; int s = 0; vector p(n); rep(i,n){ rep(j,i){ pq.push(MP(-(a[i]-a[j])*(a[i]-a[j])-(b[i]-b[j])*(b[i]-b[j]),MP(i,j))); } } while(!pq.empty()){ auto x = pq.top(); pq.pop(); if(x.second.second==0){ if(!p[x.second.first]){ s++; p[x.second.first] = 1; } }else{ if(!p[x.second.first]){ if(!p[x.second.second]){ p[x.second.first] = 1; p[x.second.second] = 1; } } } } cout << s << endl; return 0; }