#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count1 = 0, p;
  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 = i + 1; j < n; j++) {
      p = arr[i] + arr[j];
      for (int k = 0; k < n; k++) {
        if (p == arr[k]) {
          count1++;
          cout << k + 1 << " " << j + 1 << " " << i + 1 << endl;
          return 0;
        }
      }
    }
  }
  if (count1 == 0) {
    cout << "-1" << endl;
  }
}
