#include <bits/stdc++.h>
using namespace std;
struct Point {
  int x, y;
  int id;
  Point() {}
  Point(int x, int y) : x(x), y(y) {}
} p[1000000];
bool cmp(Point a, Point b) {
  if (a.x != b.x) return a.x < b.x;
  return a.y < b.y;
}
Point operator-(Point a, Point b) { return Point(a.x - b.x, a.y - b.y); }
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    scanf("%d%d", &p[i].x, &p[i].y);
    p[i].id = i;
  }
  sort(p + 1, p + n + 1, cmp);
  cout << p[1].id << ' ' << p[2].id << ' ';
  for (int i = 3; i <= n; i++) {
    Point a = p[i] - p[1];
    Point b = p[i] - p[2];
    if ((long long)a.x * (long long)b.y != (long long)a.y * (long long)b.x) {
      cout << p[i].id << endl;
      return 0;
    }
  }
  return 0;
}
