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.
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.
Print the total score each player earned across the three games, one per line, in the same order as the input.
In the first example, each player's score is computed as follows.