#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, mas[10001];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> mas[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      for (int k = 0; k < n; k++) {
        if (i != j && i != k && j != k && mas[i] == mas[j] + mas[k]) {
          cout << i + 1 << " " << j + 1 << " " << k + 1;
          return 0;
        }
      }
    }
  }
  cout << -1;
  return EXIT_SUCCESS;
}
