#PCBSAU0000008. Lớn nhất và nhỏ nhất (Minimum and Maximum)

Lớn nhất và nhỏ nhất (Minimum and Maximum)

Minimum and Maximum

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given three integers a,b,ca,b,c, find their minimum and maximum without conditional statements.

Input

One line containing three integers a,b,ca,b,c.

Output

Print the minimum and maximum, separated by one space.

Subtask

  • Subtask 1 — 100 points: −109≤a,b,c≤109-10^9\le a,b,c\le10^9.

Example

Input

4 -2 9

Output

-2 9

Explanation

Among 4,−2,94,-2,9, the smallest value is −2-2 and the largest is 99. The output is -2 9.