#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, x1, y1, x2, y2;
  set<double> st;
  cin >> n >> x1 >> y1;
  long t = 0;
  for (int i = 1; i <= n; i++) {
    cin >> x2 >> y2;
    x2 -= x1;
    y2 -= y1;
    if (x2 == 0)
      t = 1;
    else
      st.insert(y2 / x2);
  }
  cout << st.size() + t << endl;
  return 0;
}
