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