e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 1: November 2 – 8. Introduction to C language. Part 1

Tuck-shop

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.

Time limit 1 seconds
Memory limit 128 MiB
Input example #1
4 2 3
Output example #1
9