#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x0, y0, x, y, temp, res = 0;
  bool check = false;
  cin >> n >> x0 >> y0;
  set<double> s;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x == x0)
      check = true;
    else {
      temp = (int)(s.size());
      s.insert((double)(y - y0) / (double)(x - x0));
      if ((int)(s.size()) > temp) {
        res++;
      }
    }
  }
  if (check)
    cout << res + 1 << endl;
  else
    cout << res << endl;
  return 0;
}
