#include <bits/stdc++.h>
using namespace std;
int arr[100];
int main() {
  int n;
  cin >> 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 (k == j || k == i) continue;
        if (arr[i] + arr[j] == arr[k])
          return cout << k + 1 << " " << j + 1 << " " << i + 1, 0;
      }
    }
  }
  cout << -1, 0;
  return 0;
}
