#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  double arr[n][3];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 2; j++) {
      cin >> arr[i][j];
      arr[i][2] = 1;
    }
  }
  int c = 0;
  double m, k;
  for (int i = 0; i < n; i++) {
    if (arr[i][2]) {
      if (arr[i][0] - x != 0) {
        m = (arr[i][1] - y) / (arr[i][0] - x);
        c++;
      } else {
        m = 100000;
        c++;
      }
    }
    if (i != n - 1) {
      for (int j = i + 1; j < n; j++) {
        if (arr[j][2]) {
          if (arr[j][0] - x != 0) {
            k = ((arr[j][1] - y) / (arr[j][0] - x));
          } else {
            k = 100000;
          }
          if (k == m) {
            arr[j][2] = 0;
          }
        }
      }
    }
  }
  cout << c;
}
