#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x1, y1;
  cin >> n >> x1 >> y1;
  unordered_set<long double> slope;
  for (long long int i = 0; i < n; i++) {
    long long int x2, y2;
    long double s;
    cin >> x2 >> y2;
    if (x1 == x2)
      s = DBL_MAX;
    else
      s = (long double)(y2 - y1) / (x2 - x1);
    if (slope.find(s) == slope.end()) {
      slope.insert(s);
    }
  }
  cout << slope.size();
  return 0;
}
