#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double a, b;
  cin >> n >> a >> b;
  vector<long double> v;
  int h = 0;
  int flag = 0;
  while (n--) {
    double x, y;
    cin >> x >> y;
    if (x == a) {
      h = 1;
    } else {
      flag = 0;
      long double m = (y - b) / (x - a);
      for (int i = 0; i < v.size(); i++) {
        if (v[i] == m) {
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        v.push_back(m);
      }
    }
  }
  if (h == 1)
    cout << v.size() + 1;
  else
    cout << v.size();
  return 0;
}
