#include <bits/stdc++.h>
using namespace std;
void init() {
  ios::sync_with_stdio(false);
  srand(time(0));
}
void pause() {}
vector<pair<int, int>> c;
vector<int> killed;
bool Online(int chosen, int curr, int x0, int y0) {
  int dx1 = c[chosen].first - x0, dx2 = c[curr].first - x0,
      dy1 = c[chosen].second - y0, dy2 = c[curr].second - y0;
  return dx1 * dy2 - dx2 * dy1 == 0;
}
int main() {
  init();
  int n, x0, y0, shots = 0;
  cin >> n >> x0 >> y0;
  c.resize(n);
  killed.resize(n, 0);
  for (int i = 0; i < n; i++) {
    cin >> c[i].first >> c[i].second;
  }
  for (int i = 0; i < n; i++) {
    if (!killed[i]) {
      killed[i] = true;
      for (int j = 0; j < n; j++) {
        if (!killed[j] && Online(i, j, x0, y0)) killed[j] = true;
      }
      shots++;
    }
  }
  cout << shots << endl;
  pause();
  return 0;
}
