Journey#10464

Journey

1 second
256 megabytes
Very easy

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.

Input

The input consists of a single line with three integers , , and (1 \leq a, b, c \leq 100).

Output

Output a single integer representing the minimum cost.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading