#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 1e18;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    long long num, flag = 0;
    cin >> num;
    vector<long long> form;
    for (auto i = 0; i < num; i++) {
      long long temp;
      cin >> temp;
      form.push_back(temp);
    }
    vector<long long> res;
    for (auto i = 0; i < num; i++) {
      for (auto j = i + 1; j < num; j++) {
        for (auto k = j + 1; k < num; k++) {
          if (form[k] + form[j] == form[i]) {
            res.push_back(i + 1);
            res.push_back(j + 1);
            res.push_back(k + 1);
            flag = 1;
            break;
          } else if (form[k] == form[j] + form[i]) {
            res.push_back(k + 1);
            res.push_back(i + 1);
            res.push_back(j + 1);
            flag = 1;
            break;
          } else if (form[k] + form[i] == form[j]) {
            res.push_back(j + 1);
            res.push_back(k + 1);
            res.push_back(i + 1);
            flag = 1;
            break;
          }
        }
      }
    }
    if (!flag)
      cout << "-1";
    else {
      for (auto i = 0; i < 3; i++) cout << res[i] << " ";
    }
  }
  return 0;
}
