#include #include #include #include #include #include #include #include #include #include #include using namespace std; //#define __int64 long long #define long __int64 #define REP(i,a,b) for(int i=a;i > > > field; bool check(int testy, int testx){ int fy = testy / Pat; int fx = testx / Pat; double kyori; for(int i=0; i > > >(Kazu, vector > >(Kazu, vector >())); cin >> n; rep(i,n){ cin >> x >> y; if(check(y,x)){ ans ++; } } cout << ans << endl; return 0; }