#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x0, y0, x, y;
  cin >> n >> x0 >> y0;
  set<double> s;
  while (n--) {
    cin >> x >> y;
    if (x0 - x == 0 && y0 - y == 0)
      continue;
    else if (x0 - x == 0)
      s.insert(10000);
    else if (y0 - y == 0)
      s.insert(20000);
    else
      s.insert(1.0 * (x0 - x) / (y0 - y));
  }
  cout << s.size() << endl;
  return 0;
}
