#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  int n, x_, y_, x, y;
  cin >> n >> x_ >> y_;
  map<pair<int, int>, int> mp;
  while (n--) {
    cin >> x >> y;
    x = x - x_;
    y = y - y_;
    int a = x / gcd(x, y);
    int b = y / gcd(x, y);
    mp[make_pair(a, b)]++;
  }
  cout << mp.size();
}
