#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n;
  vector<int> a;
  cin >> n;
  for (int i = (0); i < ((n)); ++i) {
    int ai;
    cin >> ai;
    a.push_back(ai);
  }
  for (int i = (0); i < ((n)); ++i) {
    for (int j = (0); j < ((n)); ++j) {
      for (int k = (0); k < ((n)); ++k) {
        if (i == j) continue;
        if (i == k) continue;
        if (j == k) continue;
        if (a[i] == a[j] + a[k]) {
          cout << i + 1 << " " << j + 1 << " " << k + 1 << endl;
          return 0;
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
