#CCBCMCHIN0000026. Ba số tăng dần (Sort Three Numbers)
Ba số tăng dần (Sort Three Numbers)
Sort Three Numbers
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given three integers , , and , print the same three values in nondecreasing order. Equal values must be preserved with their original multiplicity.
Input
Three integers , , and on one line.
Output
Print the three integers in nondecreasing order on one line, separated by a single space.
Subtasks
- Subtask 1 (20 points): The absolute value of each integer is at most .
- Subtask 2 (30 points): The absolute value of each integer is at most .
- Subtask 3 (50 points): The absolute value of each integer is at most .
Examples
Input
3 1 2
Output
1 2 3
Explanation
The input values are , , . Their nondecreasing order is , , , preserving all values.