1399: 计算每门课的最低分

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:6 Solved:5

Description

输入每个学生的语文、数学、英语成绩,计算出每门课的最低分。

Input

第一行一个整数n表示后面有几个学生(n<100)
第二行到最后一行,每一行输入一个学生的学号、语文、数学、英语,中间用空格隔开

Output

输出一行表示每门课的最低分,中间用空格隔开。

Sample Input Copy

5
1 72 78 79
2 68 88 89
3 78 88 79
4 79 88 80
5 89 88 86

Sample Output Copy

68 78 79