#include <bits/stdc++.h>
using namespace std;
vector<pair<pair<long long, long long>, int> > P;
bool notsameline(int p) {
  long long x1 = P[0].first.first, y1 = P[0].first.second;
  long long x2 = P[1].first.first, y2 = P[1].first.second;
  long long x3 = P[p].first.first, y3 = P[p].first.second;
  if (x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2) == 0) return false;
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  long long x, y;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x >> y;
    P.push_back(make_pair(make_pair(x, y), i + 1));
  }
  sort((P).begin(), (P).end());
  for (int i = 2; i < n; ++i) {
    if (notsameline(i)) {
      cout << P[0].second << " " << P[1].second << " " << P[i].second << "\n";
      break;
    }
  }
  return 0;
}
