Competitions

# PP1 Week 2 Contest 1

# Lazy Misha

Misha wants to play football with guys and was about to leave the house, but suddenly he was caught by mum who told that as long as Misha will not help her in the house, he will not go to the football. Mum suggested Misha to do one of three things: either to wash the dishes, or to vacuum the apartment, or to play with his younger sister Marina, while the mother goes to the store. Misha wondered how long it takes each case:

- Washing the dished takes
`t`

seconds_{1} - Vacuuming the apartment takes
`t`

seconds_{2} - Playing with Marinka takes
`t`

seconds_{3}

It is obvious that Misha will choose the work that takes the least time. Your program must write the time during which Misha will perform the mother's job.

#### Input

Three integers `t`

, _{1}`t`

, _{2}`t`

(_{3}**1** ≤ `t`

, _{1}`t`

, _{2}`t`

≤ _{3}**1000**).

#### Output

Print the minimum time to do the mum's job for Misha.

Input example #1

31 15 40

Output example #1

15