#include <bits/stdc++.h>
using namespace std;
float m(int x0, int y0, int x, int y) {
  float xx = x - x0;
  float yy = y - y0;
  float d = yy / xx;
  return d;
}
int main() {
  int n, x0, y0;
  cin >> n >> x0 >> y0;
  vector<int> a(n, 1);
  vector<int> x(n);
  vector<int> y(n);
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] != 0) {
      for (int j = i + 1; j < n; j++) {
        if (a[j] != 0) {
          if (x[i] - x0 == 0 && x[j] == x0) {
            a[j] = 0;
            continue;
          }
          if (m(x0, y0, x[i], y[i]) == m(x0, y0, x[j], y[j])) {
            a[j] = 0;
          }
        }
      }
    }
  }
  cout << accumulate(a.begin(), a.end(), 0);
  return 0;
}
