#include <bits/stdc++.h>
using namespace std;
int main() {
  set<double> s1, s2;
  double n, x, y;
  cin >> n >> x >> y;
  double xx, yy;
  for (int i = 1; i <= n; i++) {
    cin >> xx >> yy;
    xx -= x, yy -= y;
    if (xx == 0 && yy != 0) {
      s1.insert(xx / yy);
    } else if (xx != 0 && yy == 0) {
      s2.insert(yy / xx);
    } else {
      s1.insert(xx / yy);
    }
  }
  cout << s1.size() + s2.size();
}
