has been training hard for programming contests! One day, he decides to study linear programming, which invariably gets him to learn about the simplex algorithm.
Unrelated to the simplex algorithm,
wishes to know the maximum joy that can be sparked.
Constraints
Subtasks
In tests worth 5 marks,
In tests worth another 5 marks,
Input Specification
The first line contains a single positive integer,
The second line contains a single positive integer,
The third line contains a single positive integer,
Output Specification
Output, on a single line, the maximum amount of joy that can be sparked.
Sample Input 1
Copy
10
10
1
Sample Output 1
Copy
10
Sample Input 2
Copy
1
1
10
Sample Output 2
Copy
10
Comments