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