Cossack Vus plans to travel from Kyiv to Kremenchuk. The direct train from Kyiv to Kremenchuk costs hryvnias. Alternatively, he can travel from Kyiv to Kharkiv for hryvnias and then from Kharkiv to Kremenchuk for hryvnias.
Determine the minimum cost in hryvnias that Cossack Vus needs to pay to reach Kremenchuk, considering both the direct route and the route via Kharkiv.
The input consists of a single line with three integers , , and (1 \leq a, b, c \leq 100).
Output a single integer representing the minimum cost.
Example 1
Example 2