Unique

No attempts yetTime limit1sMemory limit128 MB

Problem

Sang-geun and his friends play the following game on a trip.

Each player picks one integer between 1 and 100 (inclusive), writes it on a card, and submits it. If no other player wrote the same number, that player earns points equal to the number they wrote. If at least one other player wrote the same number, that player earns no points in that game.

They played this game three times in total. Given the numbers each player wrote in the three games, compute the total score each player earned across all three games.

Input

The first line contains the number of participants $N$. ($2 \le N \le 200$)

Each of the next $N$ lines contains the numbers a player wrote in the first, second, and third game, separated by spaces.

Output

Print the total score each player earned across the three games, one per line, in the same order as the input.

Hint

In the first example, each player's score is computed as follows.

  • Player 1: 0 + 0 + 0 = 0
  • Player 2: 0 + 0 + 92 = 92
  • Player 3: 63 + 89 + 63 = 215
  • Player 4: 99 + 0 + 99 = 198
  • Player 5: 89 + 0 + 0 = 89