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