Type: Default 1000ms 256MiB

和为0

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

给定一个包含nn个整数的数组aa,判断aa中是否存在三个元素aiajaka_i、a_j、a_k,满足ai+aj+ak=0a_i + a_j + a_k = 0?找出所有满足条件且不重复的三元组。

Format

Input

第一行一个整数nn

第二行nn个整数aia_i

Output

每行输出一个三元组, 较小元素更靠前输出, 如果没有方案, 则输出-1

Samples

6
-1 0 1 2 -1 -4
-1 -1 2
-1 0 1

Limitation

3<=n<=30003 <= n <= 3000

105<=ai<=105-10^5 <= a_i <= 10^5