#include <bits/stdc++.h>
using namespace std;
struct pos {
  int x, y, z;
  inline bool operator<(const pos t) const {
    if (x != t.x)
      return x < t.x;
    else
      return y < t.y;
  }
} g[120000];
int i, n;
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%d%d", &g[i].x, &g[i].y), g[i].z = i;
  sort(g + 1, g + n + 1), printf("%d %d ", g[1].z, g[2].z);
  for (i = 3;
       (g[i].x == g[1].x) || (1LL * (g[i].y - g[1].y) * (g[2].x - g[1].x) ==
                              1LL * (g[i].x - g[1].x) * (g[2].y - g[1].y));
       i++)
    ;
  printf("%d", g[i].z);
  return 0;
}
