시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 5397 3332 3021 64.167%

문제

"나는 요리사다"는 다섯 참가자들이 서로의 요리 실력을 뽐내는 티비 프로이다. 각 참가자는 자신있는 음식을 하나씩 만들어오고, 서로 다른 사람의 음식을 점수로 평가해준다. 점수는 1점부터 5점까지 있다.

각 참가자가 얻은 점수는 다른 사람이 평가해 준 점수의 합이다. 이 쇼의 우승자는 가장 많은 점수를 얻은 사람이 된다.

각 참가자가 얻은 평가 점수가 주어졌을 때, 우승자와 그의 점수를 구하는 프로그램을 작성하시오.

입력

총 다섯 개 줄에 각 참가자가 얻은 네 개의 평가 점수가 공백으로 구분되어 주어진다. 첫 번째 참가자부터 다섯 번째 참가자까지 순서대로 주어진다. 항상 우승자가 유일한 경우만 입력으로 주어진다.

출력

첫째 줄에 우승자의 번호와 그가 얻은 점수를 출력한다.

예제 입력 1

5 4 4 5
5 4 4 4
5 5 4 4
5 5 5 4
4 4 4 5

예제 출력 1

4 19
W3sicHJvYmxlbV9pZCI6IjI5NTMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWIwOThcdWIyOTQgXHVjNjk0XHViOWFjXHVjMGFjXHViMmU0IiwiZGVzY3JpcHRpb24iOiJcclxuPHA+XHJcblx0JnF1b3Q7XHViMDk4XHViMjk0IFx1YzY5NFx1YjlhY1x1YzBhY1x1YjJlNCZxdW90O1x1YjI5NCBcdWIyZTRcdWMxMmYgXHVjYzM4XHVhYzAwXHVjNzkwXHViNGU0XHVjNzc0IFx1YzExY1x1Yjg1Y1x1Yzc1OCBcdWM2OTRcdWI5YWMgXHVjMmU0XHViODI1XHVjNzQ0IFx1YmY1MFx1YjBiNFx1YjI5NCBcdWQyZjBcdWJlNDQgXHVkNTA0XHViODVjXHVjNzc0XHViMmU0LiBcdWFjMDEgXHVjYzM4XHVhYzAwXHVjNzkwXHViMjk0IFx1Yzc5MFx1YzJlMFx1Yzc4OFx1YjI5NCBcdWM3NGNc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