#include <bits/stdc++.h>
int main(void) {
  int n, x0, y0, target[2][1000], i, j, num = 0, ok = 0;
  scanf("%d %d %d", &n, &x0, &y0);
  for (i = 0; i < n; i++) {
    scanf("%d %d", &target[0][i], &target[1][i]);
    target[0][i] -= x0;
    target[1][i] -= y0;
    ok = 1;
    for (j = 0; j < i; j++) {
      if (target[0][i] * target[1][j] == target[1][i] * target[0][j]) {
        ok = 0;
        break;
      }
    }
    num += ok;
  }
  printf("%d", num);
}
