Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

A. Worms Evolution

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputProfessor Vasechkin is studying evolution of worms. Recently he put forward hypotheses that all worms evolve by division. There are *n* forms of worms. Worms of these forms have lengths *a*_{1}, *a*_{2}, ..., *a*_{n}. To prove his theory, professor needs to find 3 different forms that the length of the first form is equal to sum of lengths of the other two forms. Help him to do this.

Input

The first line contains integer *n* (3 ≤ *n* ≤ 100) — amount of worm's forms. The second line contains *n* space-separated integers *a*_{i} (1 ≤ *a*_{i} ≤ 1000) — lengths of worms of each form.

Output

Output 3 distinct integers *i* *j* *k* (1 ≤ *i*, *j*, *k* ≤ *n*) — such indexes of worm's forms that *a*_{i} = *a*_{j} + *a*_{k}. If there is no such triple, output -1. If there are several solutions, output any of them. It possible that *a*_{j} = *a*_{k}.

Examples

Input

5

1 2 3 5 7

Output

3 2 1

Input

5

1 8 1 5 1

Output

-1

Codeforces (c) Copyright 2010-2019 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Dec/12/2019 05:05:21 (h2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|