#include <bits/stdc++.h>
using namespace std;
struct point {
  int x;
  int y;
  bool done;
};
int main() {
  int shots = 0, n;
  point gun, trooper[1000];
  cin >> n >> gun.x >> gun.y;
  gun.done = true;
  for (int i = 0; i < n; i++) {
    cin >> trooper[i].x >> trooper[i].y;
    trooper[i].done = false;
  }
  for (int i = 0; i < n; i++) {
    if (!trooper[i].done) {
      shots++;
      for (int j = i + 1; j < n; j++) {
        if (!trooper[j].done &&
            ((trooper[j].y - trooper[i].y) * (trooper[i].x - gun.x) ==
             (trooper[i].y - gun.y) * (trooper[j].x - trooper[i].x))) {
          trooper[j].done = true;
        }
      }
      trooper[i].done = true;
    }
  }
  cout << shots;
  return 0;
}
