#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x0, y0;
  cin >> n >> x0 >> y0;
  set<double> rem;
  bool vert = false;
  for (int i = (0); i < (n); ++i) {
    int x, y;
    cin >> x >> y;
    if (x == x0)
      vert = true;
    else
      rem.insert((double)(y - y0) / (x - x0));
  }
  cout << (rem.size() + (vert ? 1 : 0));
}
