Exam

Interview

Time limit2sMemory limit512 MB

Summary
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.

Examples3

  1. Example 1

    Input
    70 80 90
    
    Expected output
    170
    
  2. Example 2

    Input
    70 100 70
    
    Expected output
    170
    
  3. Example 3

    Input
    70 70 70
    
    Expected output
    140