#include <bits/stdc++.h>
using namespace std;
const double pi = 4 * atan(1);
const double eps = 1e-10;
bool used[1005];
double r[1005];
int main() {
  int n, x0, y0;
  cin >> n >> x0 >> y0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    r[i] = atan2(y - y0, x - x0);
    if (r[i] <= 0) r[i] += pi;
  }
  fill(used, used + n, false);
  int ans = 0;
  for (int i = 0; i < n; i++)
    if (!used[i]) {
      used[i] = true;
      for (int j = i + 1; j <= n; j++)
        if (!used[j] && fabs(r[i] - r[j]) <= eps) used[j] = true;
      ans += 1;
    }
  cout << ans << endl;
  return 0;
}
