Exam Scores
InterviewTime limit1sMemory limit128 MB
Given the four subject scores of two students, print the larger of the two totals, or Minguk's total when they tie.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
Minguk and Manse, students at Daehan High School, each took exams in four subjects: Information, Math, Science, and English. Given both students' four subject scores, write a program that prints the larger of Minguk's total and Manse's total . If the two totals are equal, print Minguk's total .
Input
The input consists of two lines.
The first line contains Minguk's Information, Math, Science, and English scores in that order, given as integers separated by spaces.
The second line contains Manse's Information, Math, Science, and English scores in the same way, given as integers separated by spaces.
Output
Print the larger of Minguk's total and Manse's total . If the two totals are equal, print .