#include <bits/stdc++.h>
using namespace std;
struct Point {
  int x, y, id;
  bool operator<(const Point &u) const {
    if (x != u.x) return x < u.x;
    return y < u.y;
  }
};
int n, j;
Point a[100007];
bool online(Point p1, Point p2, Point p3) {
  p2.x -= p1.x;
  p2.y -= p1.y;
  p3.x -= p1.x;
  p3.y -= p1.y;
  return ((long long)p2.x * p3.y - (long long)p3.x * p2.y == 0);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i].x >> a[i].y;
    a[i].id = i;
  }
  sort(a + 1, a + n + 1);
  cout << a[1].id << " " << a[2].id << " ";
  if (a[1].x != a[2].x) {
    for (j = 3; online(a[1], a[2], a[j]); j++)
      ;
    cout << a[j].id << endl;
  } else {
    for (j = 3; a[j].x == a[1].x; j++)
      ;
    cout << a[j].id << endl;
  }
}
