#K11771. Taco Sorted Unique Numbers
Taco Sorted Unique Numbers
Taco Sorted Unique Numbers
You are given a single line of space-separated integers. Your task is to remove duplicate integers and sort the remaining unique numbers in ascending order. If the input is an empty string, output an empty line.
Example:
- Input: "4 7 2 8 7 3 2" → Output: "2 3 4 7 8"
- Input: "1 1 1 1 1" → Output: "1"
- Input: "" → Output: ""
Read the input from standard input (stdin) and print the result to standard output (stdout).
inputFormat
The input consists of a single line containing space-separated integers. The line may be empty.
outputFormat
Output the sorted unique integers separated by a single space on one line. If the input is empty, output an empty line.
## sample4 7 2 8 7 3 2
2 3 4 7 8