https://www.acmicpc.net/problem/2953
import java.util.*
import java.lang.String.format
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var max=0
var m=0
for(i in 1..5){
var sum=0
for(j in 0 until 4){
var a=s.nextInt()
sum+=a
}
if(sum>max){
max=sum
m=i
}
}
print(format("%d %d",m,max))
}