The Contest Is Mine Now
Time limit1sMemory limit1024 MB
Given prizes A, P, and C, find the larger of A + C (Division 1, then 2024 shake!) and P (Division 2 alone).
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem

You can win the contest any way you like.
The 14th Ajou University Programming Contest (hereafter 2024 APC) is held in 2024. 2024 APC has two divisions.
- Division 1 is open to everyone. Winners of Division 1 earn a spot in the 2024 Gyeongin Six-University Programming Contest (hereafter 2024 shake!).
- Division 2 is open to anyone not enrolled in the College of Software Convergence or the College of Information and Communication. Even winners of Division 2 cannot advance to 2024 shake!.
You cannot enter both divisions. In other words, the participants of Division 1 and Division 2 do not overlap.
Each contest pays a prize to its winner. Winning Division 1 pays ten thousand won, winning Division 2 pays ten thousand won, and winning 2024 shake! pays ten thousand won. You are not enrolled in either college, so you win any contest you enter. Find the maximum prize money you can earn.
Input
The first line contains three integers , , and , separated by spaces.
is the prize for winning Division 1, is the prize for winning Division 2, and is the prize for winning 2024 shake!.
Output
Print the maximum prize money that you can earn by entering contests under the conditions of the problem, as the top competitor of Ajou University.