#include <bits/stdc++.h>
using namespace std;
int hcf(int a, int b) {
  if (a < b) return hcf(b, a);
  int temp;
  while (b) {
    temp = a - (a / b) * b;
    a = b;
    b = temp;
  }
  return a;
}
void format(pair<int, int> &p) {
  if (p.first == 0 && p.second == 0)
    return;
  else if (p.first == 0)
    p.second = 1;
  else if (p.second == 0)
    p.first = 1;
  else {
    int h;
    if (p.second < 0) {
      p.first = -p.first;
      p.second = -p.second;
    }
    h = hcf(abs(p.first), p.second);
    p.first /= h;
    p.second /= h;
  }
}
int main() {
  int n, x0, y0, x, y;
  cin >> n >> x0 >> y0;
  pair<int, int> p;
  set<pair<int, int> > slope;
  for (int i = 0; i < n; i++) {
    cin >> p.first >> p.second;
    p.first -= x0;
    p.second -= y0;
    format(p);
    slope.insert(p);
  }
  cout << slope.size();
  return 0;
}
