#include <bits/stdc++.h>
using namespace std;
int main() {
  int nForm, form[105];
  cin >> nForm;
  for (int i = 0; i < nForm; i++) cin >> form[i];
  for (int i = 0; i < nForm; i++)
    for (int j = 0; j < nForm; j++)
      for (int k = j; k < nForm; k++) {
        if (i == j || i == k || j == k) continue;
        if (form[i] == form[j] + form[k]) {
          cout << i + 1 << " " << j + 1 << " " << k + 1;
          return 0;
        }
      }
  cout << "-1";
  return 0;
}
