The 1T academy wants to organize the school Legends of the League championship. Rekaf is in charge of making teams in his class, but he is too busy practicing his favourite character Zeb, so he asks you to help.
There are students in Rekaf's class, each having a power level . Because you are also pretty busy, you chose a simple method to form teams:
- Choose integers , , and ().
- Create teams:
- contains students .
- contains students .
- contains students .
- contains students .
Let be the sum of power levels of students in team .
Because you want the teams to be somewhat balanced, you will choose , , and such that and .
Input
The first line contains a single integer () — the length of the array .
The second line contains integers ().
Output
Print , , and .
If there are multiple solutions, print the lexicographically smallest one. The triplet is smaller than if any of the following holds true:
- ;
- and ;
- and and .
For example, , , and .
If there are no solutions, print .
Example 1
stdin
8
1 1 2 1 2 4 1 2
stdout
2 5 7
Example 2
stdin
5
1 1 1 1 1
stdout
-1
Notes
In the first example, the teams are , , , and . Therefore, and .