#CCBCMCHIN0000027. Số ở giữa của ba số (Middle of Three Numbers)

Số ở giữa của ba số (Middle of Three Numbers)

Middle of Three Numbers

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given three integers aa, bb, and cc, the middle value is the second value in their nondecreasing order. Repeated values occupy separate positions.

Input

Three integers aa, bb, and cc on one line.

Output

Print the integer in the middle position.

Subtasks

  • Subtask 1 (20 points): The absolute value of each integer is at most 1010.
  • Subtask 2 (30 points): The absolute value of each integer is at most 10410^4.
  • Subtask 3 (50 points): The absolute value of each integer is at most 10910^9.

Examples

Input

9 2 5

Output

5

Explanation

Sorting 99, 22, 55 produces 22, 55, 99, whose second value is 55.