#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; ++j) {
      if (j == i) continue;
      for (int k = 0; k < n; ++k) {
        if (j == k)
          continue;
        else if (i == k)
          continue;
        if (arr[j] + arr[k] == arr[i]) {
          cout << i + 1 << ' ' << k + 1 << ' ' << j + 1;
          return 0;
        }
      }
    }
  }
  cout << -1;
  return 0;
}
