#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const double eps = 1e-9;
int dcmp(double x) { return fabs(x) <= eps ? 0 : (x > 0 ? 1 : -1); }
int n;
pair<pair<double, double>, int> p[200001];
int main() {
  double x, y;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf %lf", &x, &y);
    p[i] = make_pair(make_pair(x, y), i);
  }
  sort(p + 1, p + 1 + n);
  for (int i = 3; i <= n; i++) {
    double tmp = (p[i].first.first - p[1].first.first) *
                 (p[i].first.second - p[2].first.second);
    tmp -= (p[i].first.second - p[1].first.second) *
           (p[i].first.first - p[2].first.first);
    if (dcmp(tmp)) {
      printf("%d %d %d\n", p[1].second, p[2].second, p[i].second);
      break;
    }
  }
  return 0;
}
