#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 , find their minimum and maximum without conditional statements.
Input
One line containing three integers .
Output
Print the minimum and maximum, separated by one space.
Subtask
- Subtask 1 — 100 points: .
Example
Input
4 -2 9
Output
-2 9
Explanation
Among , the smallest value is and the largest is . The output is -2 9.