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