#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  solve();
  return 0;
}
void solve() {
  int i, n, x, y, d = 0, j;
  cin >> n >> x >> y;
  vector<pair<int, int>> a(n);
  vector<int> b(n);
  for (i = 0; i < n; i++) {
    cin >> a[i].first >> a[i].second;
  }
  for (i = 0; i < n; i++) {
    if (!b[i]) {
      b[i] = 1;
      d += 1;
      for (j = 0; j < n; j++) {
        if (!b[j]) {
          if ((a[j].first - a[i].first) * (y - a[i].second) ==
              (x - a[i].first) * (a[j].second - a[i].second)) {
            b[j] = 1;
          }
        }
      }
    }
  }
  cout << d;
}
