Under construction

Still being built. Things may change

The Contest Is Mine Now

Time limit1sMemory limit1024 MB

Summary
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 AA ten thousand won, winning Division 2 pays PP ten thousand won, and winning 2024 shake! pays CC 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 AA, PP, and CC, separated by spaces. (1≤A,P,C≤500)(1\leq A,P,C\leq 500)

AA is the prize for winning Division 1, PP is the prize for winning Division 2, and CC 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.

Examples1

  1. Example 1

    Input
    500 300 500
    
    Expected output
    1000