Without lift#7107

Without lift

1 секунда
128 мегабајти
Лесно

Three friends — Andrei, Boris, and Vladimir — live respectively on floors , , and of a multi-storey building. They are athletic and therefore never use the elevator. One day, they need to urgently meet at one of their homes.

Write a program to determine the floor number where they should meet so that the total time before all friends have arrived is minimized. Note that their speed when descending stairs is \dfrac{47}{31} times faster than their speed when ascending.

Влез

The input contains three positive integers — the floor numbers where the friends live: , , and (1 \leq a, b, v \leq 28).

Излез

Print one integer — the floor number where the friends will meet.

Примери

Пример 1

Loading
Loading