#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e3 + 10;
int x[MAXN], y[MAXN];
bool alive[MAXN];
int main() {
  fill(alive, alive + MAXN, true);
  ios_base::sync_with_stdio(false);
  int n, x0, y0, res = 0;
  cin >> n >> x0 >> y0;
  for (int i = 0; i < (int)(n); i++) cin >> x[i] >> y[i];
  for (int i = 0; i < (int)(n); i++) {
    if (!alive[i]) continue;
    res++;
    for (int j = 0; j < (int)(n); j++) {
      if ((x[i] - x0) * (y[j] - y0) == (y[i] - y0) * (x[j] - x0))
        alive[j] = false;
    }
  }
  cout << res << endl;
  return 0;
}
