eolymp
bolt
Try our new interface for solving problems
Problems

Gallery

Gallery

Cossack Us works in the gallery, he was assigned the task of building the highest tower of vases. He has three vases with heights $a$, $b$, $c$. But, here's the trouble, if you put three vases on top of each other, --- such a design will quickly break. The Cossack can choose two vases and put them on top of each other. He wants to get the highest arrangement of vases. Find the maximum height he can reach. \InputFile The first line contains three integers $a$, $b$, $c$ ($1 \le a,b,c \le 10^8$). \OutputFile Print a single integer --- the maximum height of the composition that satisfies the condition. \Note In the first example, we can take the first and second vase. The height of the composition will be $7+4=11$. In the second example, we can take the second and third vases. The height of the composition will be $2+6=8$. You can also take the first vase instead of the second.
Time limit 1 second
Memory limit 256 MiB
Input example #1
7 4 3
Output example #1
11
Input example #2
2 2 6
Output example #2
8
Author Vladislav Denisyuk
Source UOI 2023. III stage