#include <bits/stdc++.h>
using namespace std;
int visit[1005];
int main() {
  int i, j, x1, x2, x3, y1, y2, y3, x, y, cnt, n;
  vector<pair<int, int> > v;
  cnt = 0;
  cin >> n >> x1 >> y1;
  for (i = 1; i <= n; i++) {
    scanf("%d %d", &x, &y);
    v.push_back(make_pair(x, y));
  }
  for (i = 0; i < n; i++) {
    if (visit[i] == 0) cnt++;
    visit[i] = 0;
    for (j = 0; j < n; j++) {
      x2 = v[i].first;
      y2 = v[i].second;
      x3 = v[j].first;
      y3 = v[j].second;
      if ((x2 - x1) * (y3 - y1) == (x3 - x1) * (y2 - y1)) {
        visit[i] = visit[j] = 1;
      }
    }
  }
  cout << cnt;
}
