#include <bits/stdc++.h>
using namespace std;
int n, xx, yy, x[1111], y[1111], cnt;
bool used[1111];
int main() {
  cin >> n >> xx >> yy;
  for (int i = 1; i <= n; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 1; i <= n; i++) {
    if (!used[i]) {
      cnt++;
      used[i] = true;
      for (int j = 1; j <= n; j++) {
        if ((x[i] - xx) * (y[j] - yy) == (x[j] - xx) * (y[i] - yy)) {
          used[j] = true;
        }
      }
    }
  }
  cout << cnt;
  return 0;
}
