#include <bits/stdc++.h>
using namespace std;
int xx, yy;
bool slope(int a, int b, int x, int y) {
  if ((b - y) * (a - xx) == (a - x) * (b - yy)) return 1;
  return 0;
}
int main() {
  int N;
  cin >> N >> xx >> yy;
  set<pair<int, int> > s;
  int a[1005], b[1005];
  for (int i = 0; i < N; i++) scanf("%d%d", &a[i], &b[i]);
  int res = 0;
  for (int i = 0; i < N; i++) {
    if (s.find(make_pair(a[i], b[i])) == s.end()) {
      res++;
      for (int j = 0; j < N; j++) {
        if (slope(a[i], b[i], a[j], b[j])) s.insert(make_pair(a[j], b[j]));
      }
    }
  }
  cout << res << "\n";
}
