Time limit
1s
Memory limit
128 MB
Three dice, each with faces from 1 to 6, are rolled. The prize for one player is determined as follows.
N (2 ≤ N ≤ 1,000) players take part. Given the three dice results for each player, output the largest prize.
The first line contains the number of players N. Each of the next N lines contains three dice results for one player, separated by spaces.
Output the largest prize on one line.