#include <bits/stdc++.h>
using namespace std;
long long int n, x[1001], y[1001];
long long int u[1001];
long long int ans;
int main() {
  cin >> n >> x[0] >> y[0];
  for (long long int i = 1; i <= n; ++i) {
    cin >> x[i] >> y[i];
    u[i] = 1;
  }
  ans = 0;
  for (long long int i = 1; i <= n; ++i) {
    if (u[i]) {
      ++ans;
      for (long long int j = i + 1; j <= n; ++j) {
        if (y[0] * (x[i] - x[0]) + (x[j] - x[0]) * (y[i] - y[0]) ==
            y[j] * (x[i] - x[0])) {
          u[j] = 0;
        }
      }
    }
  }
  cout << ans;
  return 0;
}
