#include <bits/stdc++.h>
using namespace std;
set<pair<int, int> > s;
int gcd(int a, int b) {
  while (b) {
    int temp = a % b;
    a = b;
    b = temp;
  }
  return a;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  int x0, y0;
  cin >> x0 >> y0;
  for (int i = 0; i < N; i++) {
    int first, second;
    cin >> first >> second;
    pair<int, int> v(first - x0, second - y0);
    if (v.second < 0) {
      v.first = -v.first;
      v.second = -v.second;
    }
    int g = gcd(v.first, v.second);
    v.first /= g;
    v.second /= g;
    s.insert(v);
  }
  cout << s.size() << endl;
  return 0;
}
