Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/ikki-kattaning-yigindisi

Sum of the two largest

Easy 1000 ms 64 MB 19%
Share

Three integers $A$, $B$ and $C$ are given. Find the sum of the two largest of them.

The smallest of three numbers is dropped and the two largest are added

Input

One line with three integers: $A$, $B$ and $C$.

Output

One integer — the sum of the two largest numbers.

Note

$-10^{6} \le A, B, C \le 10^{6}$

Examples

Input #1
1 2 3
Output #1
5
Input #2
3 1 2
Output #2
5

Sign in to submit a solution

Signing up is free and takes a minute.