#include <bits/stdc++.h>
using namespace std;
long long int det(int a, int b, int c, int d, int e, int f) {
  return ((long long int)a * d + (long long int)b * e + (long long int)f * c -
          (long long int)d * e - (long long int)f * a - (long long int)b * c);
}
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<vector<int> > V(n);
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    V[i] = {a, b, i};
  }
  sort(V.begin(), V.end());
  int ind1, ind2, ind3;
  ind1 = V[0][2];
  ind2 = V[1][2];
  for (int i = 2; i < n; i++) {
    if (V[i][0] == V[0][0]) continue;
    if (det(V[0][0], V[0][1], V[1][0], V[1][1], V[i][0], V[i][1]) != 0) {
      ind3 = V[i][2];
      break;
    }
  }
  cout << ind1 + 1 << " " << ind2 + 1 << " " << ind3 + 1 << endl;
  return 0;
}
