Problem: There are N pinholes on the xy-plane. The i-th pinhole is located at (x_i,y_i).

We will denote the Manhattan distance between the i-th and j-th pinholes as d(i,j)(=|x_i-x_j|+|y_i-y_j|).

You have a peculiar pair of compasses, called Manhattan Compass. This instrument always points at two of the pinholes. The two legs of the compass are indistinguishable, thus we do not distinguish the following two states: the state where the compass points at the p-th and q-th pinholes, and the state where it points at the q-th and p-th pinholes.

When the compass points at the p-th and q-th pinholes and d(p,q)=d(p,r), one of the legs can be moved so that the compass will point at the p-th and r-th pinholes.

Initially, the compass points at the a-th and b-th pinholes. Find the number of the pairs of pinholes that can be pointed by the compass.

Constraints

* 2≦N≦10^5
* 1≦x_i, y_i≦10^9
* 1≦a < b≦N
* When i ≠ j, (x_i, y_i) ≠ (x_j, y_j)
* x_i and y_i are integers.

Input

The input is given from Standard Input in the following format:


N a b
x_1 y_1
:
x_N y_N


Output

Print the number of the pairs of pinholes that can be pointed by the compass.

Examples

Input

5 1 2
1 1
4 3
6 1
5 5
4 8


Output

4


Input

6 2 3
1 3
5 3
3 5
8 4
4 7
2 5


Output

4


Input

8 1 2
1 5
4 3
8 2
4 7
8 8
3 3
6 6
4 8


Output

7

Solution (in CPP):

Solution:
// This amazing code is by Eric Sunli Chen.
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
template<typename T> void get_int(T &x)
{
	char t=getchar();
	bool neg=false;
	x=0;
	for(; (t>'9'||t<'0')&&t!='-'; t=getchar());
	if(t=='-')neg=true,t=getchar();
	for(; t<='9'&&t>='0'; t=getchar())x=x*10+t-'0';
	if(neg)x=-x;
}
template<typename T> void print_int(T x)
{
	if(x<0)putchar('-'),x=-x;
	short a[20]= {},sz=0;
	while(x>0)a[sz++]=x%10,x/=10;
	if(sz==0)putchar('0');
	for(int i=sz-1; i>=0; i--)putchar('0'+a[i]);
}
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define get1(a) get_int(a)
#define get2(a,b) get1(a),get1(b)
#define get3(a,b,c) get1(a),get2(b,c)
#define printendl(a) print_int(a),puts("")
typedef long long LL;
typedef unsigned long long uLL;
typedef pair<int,int> pii;
const int inf=0x3f3f3f3f;
const LL Linf=1ll<<61;
const double pi=acos(-1.0);

map<int,vector<int> > v1,v2;
map<int,set<int> >s1,s2;
map<pii,int> id;

int n,a,b;
LL x[100111],y[100111],d;
bool vis[100111];int q[100111],sz;

void addx(LL x,LL ly,LL ry)
{
	set<int>&cur=s1[x];
	set<int>::iterator it,it2;
	for(it=cur.lower_bound(ly);it!=cur.end()&&*it<=ry;it=it2)
	{
		it++;it2=it;it--;
		int v=id[mp(x,*it)];vis[v]=1;q[sz++]=v;
		cur.erase(it);
		s2[*it].erase(x);
	}
}
void addy(LL y,LL lx,LL rx)
{
	set<int>&cur=s2[y];
	set<int>::iterator it,it2;
	for(it=cur.lower_bound(lx);it!=cur.end()&&*it<=rx;it=it2)
	{
		it++;it2=it;it--;
		int v=id[mp(*it,y)];vis[v]=1;q[sz++]=v;
		cur.erase(it);
		s1[*it].erase(y);
	}
}
int qx(LL x,LL ly,LL ry){return upper_bound(v1[x].begin(),v1[x].end(),ry)-lower_bound(v1[x].begin(),v1[x].end(),ly);}
int qy(LL y,LL lx,LL rx){return upper_bound(v2[y].begin(),v2[y].end(),rx)-lower_bound(v2[y].begin(),v2[y].end(),lx);}
int main()
{
	get3(n,a,b);
	for(int i=1;i<=n;i++)
	{
		get2(x[i],y[i]);
		int tmp=x[i]+y[i];y[i]=x[i]-y[i];x[i]=tmp;
		v1[x[i]].pb(y[i]);v2[y[i]].pb(x[i]);
		if(i!=a&&i!=b){s1[x[i]].insert(y[i]);s2[y[i]].insert(x[i]);}
		id[mp(x[i],y[i])]=i;
	}
	for(auto &v:v1)sort(v.ss.begin(),v.ss.end());
	for(auto &v:v2)sort(v.ss.begin(),v.ss.end());
	d=max(abs(x[a]-x[b]),abs(y[a]-y[b]));
	q[sz++]=a;q[sz++]=b;vis[a]=vis[b]=1;
	for(int _=0,i;_<sz;_++)
	{
		i=q[_];
		addx(x[i]-d,y[i]-d,y[i]+d);
		addx(x[i]+d,y[i]-d,y[i]+d);
		addy(y[i]-d,x[i]-d,x[i]+d);
		addy(y[i]+d,x[i]-d,x[i]+d);
	}
	LL ans=0;
	
	for(int i=1;i<=n;i++)
	{
		if(!vis[i])continue;
		ans+=qx(x[i]-d,y[i]-d,y[i]+d-1);
		ans+=qy(y[i]+d,x[i]-d,x[i]+d-1);
		ans+=qx(x[i]+d,y[i]-d+1,y[i]+d);
		ans+=qy(y[i]-d,x[i]-d+1,x[i]+d);
	}
	printendl(ans>>1);
	return 0;
}