#include <bits/stdc++.h>
using namespace std;
int a[105];
int main() {
  int n;
  while (cin >> n) {
    bool flag = false;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        if (i == j) continue;
        for (int k = 0; k < n; k++) {
          if (k == j || k == i) continue;
          if (a[i] == a[j] + a[k]) {
            cout << i + 1 << " " << j + 1 << " " << k + 1 << endl;
            flag = true;
            break;
          }
        }
        if (flag) break;
      }
      if (flag) break;
    }
    if (!flag) cout << "-1" << endl;
  }
  return 0;
}
