eolymp
bolt
Try our new interface for solving problems
Problems

Lazy Misha

Lazy Misha

\includegraphics{https://static.e-olymp.com/content/e0/e012bb1a52365737631c9929086a323293b92df8.jpg} Misha wants to play football with guys and was about to leave the house, but he was caught by mom, who told him that if he won't help her in the house, he will not go to the football. Mom suggested that Misha do one of three things: either wash the dishes, vacuum the apartment, or play with his younger sister Marina, while the mother goes to the store. Misha wondered how long it takes for each case: \begin{itemize} \item Washing the dishes takes $t_1$ seconds; \item Vacuuming the apartment takes $t_2$ seconds; \item Playing with Marinka takes $t_3$ seconds. \end{itemize} It is obvious that Misha will choose the work that takes the least time. Your program must give the time during which Misha will perform the mother's job. \InputFile Three integers $t_1, t_2, t_3~(1 \le t_1, t_2, t_3 \le 1000)$. \OutputFile Print the minimum time to do the mom's job for Misha.
Time limit 1 second
Memory limit 128 MiB
Input example #1
31 15 40
Output example #1
15