#include <bits/stdc++.h>
using namespace std;
const int NMAX = 1e3 + 5;
int x[NMAX], y[NMAX];
bool ok[NMAX];
bool check(int i, int j) {
  return ((y[0] - y[i]) * (x[j] - x[0]) + (x[i] - x[0]) * (y[j] - y[0]) == 0);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n >> x[0] >> y[0];
  for (int i = 1; i <= n; i++) {
    cin >> x[i] >> y[i];
  }
  memset(ok, false, sizeof(ok));
  int res = 0;
  for (int i = 1; i <= n; i++) {
    if (!ok[i]) {
      res++;
      for (int j = 1; j <= n; j++) {
        if (check(i, j)) {
          ok[j] = true;
        }
      }
    }
  }
  cout << res;
  return 0;
}
