#include <bits/stdc++.h>
using namespace std;
void Solve() {
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      for (int k = 0; k < n; ++k) {
        if (i != j && j != k && arr[j] + arr[k] == arr[i]) {
          cout << i + 1 << " " << j + 1 << " " << k + 1 << endl;
          return;
        }
      }
    }
  }
  cout << -1 << endl;
}
int main() {
  ios::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    Solve();
  }
  return 0;
}
