#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x0, y0;
  cin >> n >> x0 >> y0;
  set<pair<int, int>> s;
  int x, y;
  cin >> x >> y;
  s.insert(make_pair(x, y));
  for (int i = 1; i < n; i++) {
    cin >> x >> y;
    bool nc = true;
    for (auto& si : s) {
      if ((y - y0) * (si.first - x) == (x - x0) * (si.second - y)) {
        nc = false;
      }
    }
    if (nc) {
      s.insert(make_pair(x, y));
    }
  }
  cout << s.size() << endl;
  return 0;
}
