#include <bits/stdc++.h>
using namespace std;
int i, j, k;
int main(int argc, char const* argv[]) {
  int n;
  double x0, y0;
  double x, y;
  std::set<double> s;
  cin >> n >> x0 >> y0;
  int p = 0;
  while (n--) {
    cin >> x >> y;
    if (fabs(x - x0) < 1e-10 && fabs(y - y0) < 1e-10) {
      p = 1;
      continue;
    }
    if (fabs(x - x0) < 1e-10) {
      p = 1;
      continue;
    }
    s.insert((y - y0) / (x - x0));
  }
  std::cout << s.size() + p << std::endl;
  int tt;
  cin >> tt;
  return 0;
}
