#include <bits/stdc++.h>
using namespace std;
bool v[20002];
map<int, int> mp;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, a[103];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    v[a[i]] = true;
    mp[a[i]] = i;
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (i == j) {
        continue;
      }
      if (v[a[i] + a[j]]) {
        return cout << mp[a[i] + a[j]] + 1 << " " << i + 1 << " " << j + 1, 0;
      }
    }
  }
  cout << -1;
  return 0;
}
