#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  double a, b, c, d;
  double k;
  cin >> N >> a >> b;
  set<double> s;
  for (long long i = 0; i < N; i++) {
    cin >> c >> d;
    if (a == c) {
      long long q = 0;
      s.insert(q);
      continue;
    }
    if (b == d) {
      long long q = 2147483647.0;
      s.insert(q);
      continue;
    }
    k = (c - a) / (d - b);
    s.insert((k));
  }
  cout << s.size() << endl;
}
