#include <bits/stdc++.h>
using namespace std;
int main() {
  double c = 0, n, a, b, x[1001], y[1001], flag = 0, v[1001] = {0};
  cin >> n >> a >> b;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
    x[i] -= a;
    y[i] -= b;
  }
  for (int i = 0; i < n; i++) {
    if (v[i] == 0) {
      if (x[i] == 0 && y[i] == 0) {
        v[i] = 1;
        flag = 1;
        continue;
      }
      if (y[i] != 0) {
        for (int j = 0; j < n; j++) {
          if (y[j] == 0) continue;
          if (x[i] / y[i] == x[j] / y[j]) v[j] = 1;
        }
      } else {
        for (int j = 0; j < n; j++) {
          if (y[j] == 0) v[j] = 1;
        }
      }
      c++;
    }
  }
  if (c > 0)
    cout << c << endl;
  else
    cout << "1\n";
}
