

#include <iostream>
#include <set>
using namespace std;
typedef pair<int, int> PII;
int gcd(int a, int b)
{
return b ? gcd(b, a % b) : a;
}
int main()
{
int n, x0, y0;
cin >> n >> x0 >> y0;
set<PII> s;
while (n -- )
{
int x, y;
cin >> x >> y;
x -= x0, y -= y0;
if (x < 0) x = -x, y = -y;
int d = gcd(x, y);
x /= d, y /= d;
s.insert({x, y});
}
cout << s.size() << endl;
return 0;
}