#include <bits/stdc++.h>
using namespace std;
vector<int> v[100005];
int main() {
  int n, a0, b0;
  cin >> n >> a0 >> b0;
  int xx[n], yy[n];
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> xx[i] >> yy[i];
  }
  bool done[n];
  memset(done, 0, sizeof(done));
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int add = 0;
    double tan = 0;
    if ((yy[i] - b0) != 0) tan = (double)(xx[i] - a0) / (double)(yy[i] - b0);
    if (!done[i]) {
      for (int j = i + 1; j < n; j++) {
        if (!done[j]) {
          double tane = 0;
          if (yy[j] - b0 != 0)
            tane = (double)(xx[j] - a0) / (double)(yy[j] - b0);
          if (xx[i] * yy[j] - b0 * xx[i] - a0 * yy[j] ==
              xx[j] * yy[i] - b0 * xx[j] - a0 * yy[i]) {
            done[i] = 1;
            done[j] = 1;
            add = 1;
          }
        }
      }
      if (add == 1) ans++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (!done[i]) ans++;
  }
  cout << ans;
  return 0;
}
