#include <bits/stdc++.h>
using namespace std;
bool check(int n, int arr[], int &i, int &j, int &k);
int main() {
  int n, i, j, k;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  if (check(n, arr, i, j, k))
    cout << k + 1 << " " << j + 1 << " " << i + 1;
  else
    cout << -1;
  return 0;
}
bool check(int n, int arr[], int &i, int &j, int &k) {
  int sum;
  for (i = 0; i < n; ++i) {
    for (j = i + 1; j < n; ++j) {
      sum = arr[i] + arr[j];
      for (k = 0; k < n; ++k) {
        if (arr[k] == sum) return true;
      }
    }
  }
  return false;
}
