#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, k, g, n, w[200];
  cin >> n;
  for (i = 0; i < n; i++) cin >> w[i];
  for (i = 0; i < n; i++)
    for (k = 0; k < n; k++)
      for (g = 0; g < n; g++)
        if (w[k] + w[g] == w[i] && (i != k) && (g != k)) {
          cout << i + 1 << " " << k + 1 << " " << g + 1;
          return 0;
        }
  cout << -1;
}
