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