public void solve() throws IOException {
    int n = nextInt();
    int xoff = nextInt();
    int yoff = nextInt();
    
    boolean[] hit = new boolean[n];
    Point[] targets = new Point[n];
    
    for (int x = 0; x < n; x++) {
      targets[x] = new Point(nextInt() - xoff, nextInt() - yoff);
    }
    
    int shots = 0;
    for (int x = 0; x < n; x++) {
      if (!hit[x]) {
        Point a = targets[x];
        for (int y = x; y < n; y++) {
          Point b = targets[y];
          if (a.x * b.y == b.x * a.y) {
            hit[y] = true;
          }
        }
        
        shots++;
      }
    }
    System.out.println(shots);
  }