#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, i;
  double x, y, p, q, k = 0;
  cin >> n >> x >> y;
  set<double> s;
  for (i = 0; i < n; ++i) {
    cin >> p >> q;
    if (x != p) {
      s.insert((y - q) / (x - p));
    } else
      k = 1;
  }
  cout << s.size() + k;
}
