#include <bits/stdc++.h>
using namespace std;
set<double> pendientes;
double x, y;
double calc(int i, int j) {
  double a = y - j, b = x - i;
  if (!b)
    return INT_MAX;
  else
    return a / b;
}
int main() {
  int n;
  cin >> n >> x >> y;
  while (n--) {
    double i, j;
    cin >> i >> j;
    pendientes.insert(calc(i, j));
  }
  cout << pendientes.size() << endl;
}
