Exam
InterviewTime limit2sMemory limit512 MB
Read three scores and print the sum of the two largest.
- Level
Easy1 of 10
- Topics
- Array, Implementation, Sorting
- Solved
- No attempts yet
Problem
JOI took the informatics exam 3 times. Every exam score is an integer between 0 and 100 inclusive.
JOI's grade is determined by the sum of the 2 highest scores among the 3 exam scores.
Given the 3 exam scores A, B, C, write a program that outputs the sum of the 2 highest scores among the 3 exam scores.
Input
The input is given from standard input in the following format.
A B C
Output
Print the sum of the 2 highest scores among the 3 exam scores on 1 line.
Constraints
0 ≦ A ≦ 100.0 ≦ B ≦ 100.0 ≦ C ≦ 100.- All inputs are integers.