#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 5;
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, x, y;
  cin >> n >> x >> y;
  set<double> s;
  int count = 0;
  while (n--) {
    double m;
    double a, b;
    cin >> a >> b;
    a -= x;
    b -= y;
    if (a != 0) {
      m = b / a;
      s.insert(m);
    } else {
      count++;
    }
  }
  cout << (count > 0) + s.size() << endl;
}
