#include <bits/stdc++.h>
using namespace std;
int n;
vector<pair<pair<long long, long long>, int> > vet;
int main() {
  cin >> n;
  vet = vector<pair<pair<long long, long long>, int> >(n);
  for (int i = 0; i < n; i++) {
    vet[i].second = i + 1;
    scanf("%I64d %I64d", &vet[i].first.first, &vet[i].first.second);
  }
  sort(vet.begin(), vet.end());
  pair<pair<long long, long long>, int> p1 = vet[0], p2 = vet[1], p3;
  for (int i = 2; i < vet.size(); i++) {
    if (p1.first.first * (p2.first.second - vet[i].first.second) +
            p2.first.first * (vet[i].first.second - p1.first.second) +
            vet[i].first.first * (p1.first.second - p2.first.second) ==
        0)
      continue;
    p3 = vet[i];
    break;
  }
  cout << p1.second << " " << p2.second << " " << p3.second << endl;
  return 0;
}
