#include using namespace std; //#include //using namespace atcoder; //using mint = modint998244353; //多倍長整数// //#include //namespace mp = boost::multiprecision; //using Bint = mp::cpp_int; const int INF = 1e9; const int MOD = 998244353; const long long LINF = 4e18; using ll = long long; using vi = vector; using vl = vector; using vs = vector; using vc = vector; using vb = vector; using vvi = vector>; using vvvi = vector>>; using vvvvi = vector>>>; using vvl = vector>; using vvvl = vector>>; using vvvvl = vector>>>; using vvc = vector>; using vvb = vector>; using vvvb = vector>>; using vvvvb = vector>>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define dump(x) cout << #x << " = " << (x) << endl; #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl #define ALL(obj) (obj).begin(),(obj).end() int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vi x(n),y(n); rep(i,n) cin >> x[i] >> y[i]; vvi dx = {{-1,1},{2,2},{1,-1},{-2,-2}}; vvi dy = {{2,2},{1,-1},{-2,-2},{-1,1}}; vector> s; vi da = {-1,1,2,2,1,-1,-2,-2}; vi db = {2,2,1,-1,-2,-2,-1,1}; rep(i,n){ rep(j,8){ bool ok = true; rep(k,n) if(x[i] + da[j] == x[k] && y[i] + db[j] == y[k]) ok = false; if(ok) s.push_back({x[i] + da[j],y[i] + db[j]}); } } sort(ALL(s)); s.erase(unique(ALL(s)),s.end()); //rep(i,s.size()) cout << s[i].first << ' ' << s[i].second << endl; vvi dp(s.size() + 1,vi(1<