#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, i, j, k, x, y, z;
  long long int r1, r2, c1, c2;
  cin >> n;
  int arr[n + 2];
  for (i = 1; i <= n; i++) cin >> arr[i];
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      for (k = 1; k <= n; k++) {
        if (arr[i] + arr[j] == arr[k] and i != j and j != k and k != i) {
          cout << k << " " << j << " " << i;
          return 0;
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
