#include //#include using namespace std; //using namespace atcoder; using ll = long long; using ull = unsigned long long; using P = pair; #define rep(i,n) for(ll i = 0;i < (ll)n;i++) #define ALL(x) (x).begin(),(x).end() #define MOD 1000000007 ll pp(ll k){return k*k;} ll d2(pair a,pair b){ return pp(a.first-b.first)+pp(a.second-b.second); } int main(){ int n; cin >> n; vector> v(n); rep(i,n)cin >> v[i].first >> v[i].second; vector> jun(n); vector> d(n); rep(i,n)for(int j = i+1;j < n;j++){ d[i].insert(d2(v[i],v[j])); d[j].insert(d2(v[j],v[i])); } rep(i,n)jun[i] = {d2(v[0],v[i]),i}; sort(ALL(jun)); vector era; int res = 0; for(int i = 1;i < n;i++){ int pos = jun[i].second; for(auto au : era){ d[pos].erase(d[pos].find(d2(v[pos],v[au]))); } if(*d[pos].begin() >= d2(v[0],v[pos])){ res++; era.push_back(pos); } } cout << res << "\n"; return 0; }