#include <bits/stdc++.h>
using namespace std;
int x[2015], y[2015];
bool v[2015];
int main() {
  int n, x0, y0, ans = 0;
  cin >> n >> x0 >> y0;
  for (int i = 0; i < n; ++i) cin >> x[i] >> y[i];
  for (int i = 0; i < n; ++i) v[i] = false;
  for (int i = 0; i < n; ++i)
    if (!v[i]) {
      ++ans;
      for (int j = i + 1; j < n; ++j)
        if (!v[j])
          v[j] = ((x[j] - x0) * (y[i] - y0) == (x[i] - x0) * (y[j] - y0));
    }
  cout << ans << endl;
}
