#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, ans, g;
  double x, y, s, t;
  scanf("%d %lf %lf", &n, &x, &y);
  map<double, int> p;
  p.clear();
  ans = 0;
  g = 0;
  for (i = 0; i < n; i++) {
    scanf("%lf %lf", &s, &t);
    if (s != x) {
      double k = (t - y) / (s - x);
      if (k < -100000000)
        k = -100000000;
      else if (k > 100000000)
        k = 100000000;
      if (!p[k]) {
        p[k] = 1;
        ans++;
      }
    } else {
      if (!g) {
        ans++;
        g = 1;
      }
    }
  }
  printf("%d\n", ans);
}
