School canteen#6

School canteen

1 second
128 megabytes
Very easy (≈850)
prb1286

In the school cafeteria to the end of lessons there were some cakes: a vanilla, b chocolate and c fruit. Dima is going to buy cakes before closing the buffet. What is the maximum possible number of cakes can choose Dima?

Input

Three non-negative integers are given - the appropriate amount of cakes, each does not exceed 20000.

Output

Print the maximum possible number of cakes that Dima can choose.

Examples

Example 1

Loading
Loading