eolymp
bolt
Try our new interface for solving problems
Problems

Сломанные весы

Сломанные весы

The seller of watermelons broke the scales and they stopped to show correct weight. However, if the weight was large enough, the scales would work properly. Then the seller came up with the next decision. He weighed all the watermelons in pairs (naturally, the number of weighing is n * (n - 1) / 2, where n is the number of watermelons).

Find the weight of each watermelon.

Input

В первой строке находится одно натуральное число n (3n1000) - число арбузов. Следующие n * (n - 1) / 2 строк содержат по одному натуральному числу xi (2xi2000) - веса пар арбузов (никак не упорядоченные).

Output

Вывести в одной строке целые положительные веса арбузов, разделенные пробелом, расположенные по возрастанию. Если для заданных входных данных ответа не существует, то вывести -1.

Time limit 1 second
Memory limit 122.49 MiB
Input example #1
3
5 8 11
Output example #1
1 4 7
Source ACM ICPC 2012-2013 NEERC Siberian Group