#include <bits/stdc++.h>
using namespace std;
static const int maxn = 300 + 5;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  vector<int> vec(n);
  for (int &x : vec) cin >> x;
  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 (i == j or i == k or k == j) continue;
        if (vec[i] == vec[j] + vec[k]) {
          cout << i + 1 << " " << j + 1 << " " << k + 1 << '\n';
          exit(0);
        }
      }
    }
  }
  cout << -1 << '\n';
}
