#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x0, y0, x, y, x1, y1, x2, y2;
  cin >> n >> x0 >> y0;
  set<double> lines;
  for (int i = 0; i < n; ++i) {
    cin >> x1 >> y1;
    double m = (y0 - y1);
    if ((x0 - x1) != 0.0)
      m = m / (x0 - x1);
    else
      m = 9999999.0;
    lines.insert(m);
  }
  cout << lines.size() << endl;
  return 0;
}
