#define _USE_MATH_DEFINES
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <list>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <algorithm>
#include <complex>
#include <cmath>
#include <numeric>
#include <bitset>

using namespace std;

#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
  cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << ": " << arg1 << " |";
  __f(comma + 1, args...);
}

typedef long long int64;
typedef pair<int, int> ii;
const int INF = 1 << 30;
const int MOD = 1e9 + 7;

struct Point {
  int x, y;
  int idx;
};

struct cmp_x {
  bool operator ()(const Point& a, const Point& b) {
    return a.x < b.x || (a.x == b.x && a.y < b.y);
  }
};

struct cmp_y {
  bool operator ()(const Point& a, const Point& b) {
    return a.y < b.y || (a.y == b.y && a.x < b.x);
  }
};

const int N = 1e5 + 10;
const int M = 5 * N;

vector<int> e[M];
int dfn[M], scc[M], low[M];
int stamp;
bool instack[M];
stack<int> S;

int x[N], y[N], cnt[N];

void add_edge(int u, int v) {
  e[u].push_back(v);
}

void DFS(int u) {
  low[u] = dfn[u] = stamp++;
  S.push(u);
  instack[u] = true;
  for (auto& v : e[u]) {
    if (dfn[v] == 0) {
      DFS(v);
      low[u] = min(low[u], low[v]);
    } else if (instack[v]) {
      low[u] = min(low[u], dfn[v]);
    }
  }
  if (low[u] == dfn[u]) {
    while (true) {
      int v = S.top();
      scc[v] = u;
      instack[v] = false;
      S.pop();
      if (v == u) break;
    }
  }
}

struct Node {
  int a, b;
  Node *left, *right;
};

Node pool[M], *last;

Node* build(const vector<Point>& p, int a, int b) {
  Node* cur = last++;
  cur->a = a;
  cur->b = b;
  if (a + 1 == b) {
    add_edge(cur - pool, p[a].idx);
    return cur;
  }
  cur->left = build(p, a, (a + b) / 2);
  cur->right = build(p, (a + b) / 2, b);
  add_edge(cur - pool, cur->left - pool);
  add_edge(cur - pool, cur->right - pool);
  return cur;
}

void query(Node* cur, int A, int B, vector<int>& ret) {
  if (cur->a >= A && cur->b <= B) {
    ret.push_back(cur - pool);
    return;
  }
  if ((cur->a + cur->b) / 2 > A) query(cur->left, A, B, ret);
  if ((cur->a + cur->b) / 2 < B) query(cur->right, A, B, ret);
}

int main() {
  int n, u, v;
  scanf("%d%d%d", &n, &u, &v);
  --u; --v;
  set<ii> C;
  vector<Point> a(n), b(n);
  for (int i = 0; i < n; ++i) {
    int X, Y;
    scanf("%d%d", &X, &Y);
    x[i] = X + Y;
    y[i] = X - Y;
    C.insert({x[i], y[i]});
    b[i] = a[i] = {x[i], y[i], i};
  }
  sort(a.begin(), a.end(), cmp_x());
  sort(b.begin(), b.end(), cmp_y());
  int d = max(abs(x[u] - x[v]), abs(y[u] - y[v]));

  last = pool + n;
  Node* root_a = build(a, 0, n);
  Node* root_b = build(b, 0, n);
  for (int i = 0; i < n; ++i) {
    {
      int L = lower_bound(a.begin(), a.end(), Point{x[i] - d, y[i] - d}, cmp_x()) - a.begin();
      int R = upper_bound(a.begin(), a.end(), Point{x[i] - d, y[i] + d}, cmp_x()) - a.begin();
      vector<int> nodes;
      if (L < R) query(root_a, L, R, nodes);
      for (auto& it : nodes) {
        add_edge(i, it);
      }
      cnt[i] += R - L;
    }
    {
      int L = lower_bound(a.begin(), a.end(), Point{x[i] + d, y[i] - d}, cmp_x()) - a.begin();
      int R = upper_bound(a.begin(), a.end(), Point{x[i] + d, y[i] + d}, cmp_x()) - a.begin();
      vector<int> nodes;
      if (L < R) query(root_a, L, R, nodes);
      for (auto& it : nodes) {
        add_edge(i, it);
      }
      cnt[i] += R - L;
    }
    {
      int L = lower_bound(b.begin(), b.end(), Point{x[i] - d, y[i] - d}, cmp_y()) - b.begin();
      int R = upper_bound(b.begin(), b.end(), Point{x[i] + d, y[i] - d}, cmp_y()) - b.begin();
      vector<int> nodes;
      if (L < R) query(root_b, L, R, nodes);
      for (auto& it : nodes) {
        add_edge(i, it);
      }
      cnt[i] += R - L;
    }
    {
      int L = lower_bound(b.begin(), b.end(), Point{x[i] - d, y[i] + d}, cmp_y()) - b.begin();
      int R = upper_bound(b.begin(), b.end(), Point{x[i] + d, y[i] + d}, cmp_y()) - b.begin();
      vector<int> nodes;
      if (L < R) query(root_b, L, R, nodes);
      for (auto& it : nodes) {
        add_edge(i, it);
      }
      cnt[i] += R - L;
    }
    if (C.find({x[i] - d, y[i] - d}) != C.end()) --cnt[i];
    if (C.find({x[i] - d, y[i] + d}) != C.end()) --cnt[i];
    if (C.find({x[i] + d, y[i] - d}) != C.end()) --cnt[i];
    if (C.find({x[i] + d, y[i] + d}) != C.end()) --cnt[i];
  }

  int m = last - pool;
  stamp = 1;
  for (int i = 0; i < m; ++i) {
    if (!dfn[i]) DFS(i);
  }

  int64 ret = 0;
  for (int i = 0; i < n; ++i) {
    if (scc[i] == scc[u]) {
      ret += cnt[i];
    }
  }
  printf("%lld\n", ret / 2);
  return 0;
}


Measured memory_bytes: 71552