#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  double x, y;
  cin >> n >> x >> y;
  long long p1 = 0, p2 = 0, ans = 0;
  set<double> s;
  for (long long i = 0; i < n; i++) {
    double a, b;
    cin >> a >> b;
    if (a == x) {
      s.insert((double)1e7);
      continue;
    }
    if (b == y) {
      s.insert((double)1e6);
      continue;
    }
    double slope = (double)(b - y) / (a - x);
    s.insert(slope);
  }
  cout << (long long)s.size() << "\n";
}
signed main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
