#include <bits/stdc++.h>
using namespace std;
class tri {
 public:
  int first, second;
  bool count;
};
int main() {
  int n, x0, y0;
  cin >> n >> x0 >> y0;
  tri* arr = new tri[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i].first >> arr[i].second;
    arr[i].count = false;
  }
  long long count = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i].count == false) {
      arr[i].count = true;
      count++;
      int a = (y0 - arr[i].second);
      int b = -1 * (x0 - arr[i].first);
      int c = (y0 - arr[i].second) * arr[i].first -
              arr[i].second * (x0 - arr[i].first);
      arr[i].count = true;
      for (int j = i + 1; j < n; j++) {
        if (arr[j].count == false) {
          if (arr[j].first * a + b * arr[j].second == c) {
            arr[j].count = true;
          }
        }
      }
    }
  }
  cout << count << endl;
  return 0;
}
