#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, hx, hy;
  cin >> n >> hx >> hy;
  vector<int> dxs;
  vector<int> dys;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    int dx = hx - x;
    int dy = hy - y;
    bool f = false;
    for (int j = 0; j < dxs.size(); j++) {
      if (dx * dys[j] == dy * dxs[j]) {
        f = true;
        break;
      }
    }
    if (!f) {
      dxs.push_back(dx);
      dys.push_back(dy);
    }
  }
  cout << dxs.size();
  return 0;
}
