#include <bits/stdc++.h>
using namespace std;
int main() {
  double i, n, x0, y0, x, y, it;
  cin >> n >> x0 >> y0;
  set<double> s;
  for (i = 0; i < n; i++) {
    cin >> x >> y;
    double slope;
    if ((x - x0) == 0)
      slope = 1000000000;
    else if ((y - y0 == 0))
      slope = 0;
    else
      slope = (double)((y - y0) / (x - x0));
    s.insert(slope);
  }
  cout << s.size();
}
