Олимпиадный тренинг

Задача 33527. Reliable fastening


The outdoor billboard is attached to the pole with three fasteners. The first  mount can withstand the wind, the speed of which does not exceed A m / s, the second – B m / s, third – C m/s. The shield itself will be securely fastened if at least two of the three fastenings can withstand the wind of a given speed. Determine the maximum speed
wind that this shield can withstand.
The program receives as input three positive integers A, B, C, not exceeding 2×109, – allowable wind speeds that can withstand three fastenings & nbsp; of the shield. The program should output a single number – the maximum wind speed the shield can withstand.
 
Input Output
28
15
10
15

Запрещенные операторы:min;max