#K12201. Mark the Highest Sale
Mark the Highest Sale
Mark the Highest Sale
You are given a single line of input containing 7 unique integers representing daily sales for a week. Your task is to sort these sales values in ascending order and mark the highest sale by appending an asterisk (*) to it.
Formally, let \(a_1, a_2, \ldots, a_7\) be the 7 unique integers. After sorting in ascending order, if \(M = \max(a_1, a_2, \ldots, a_7)\), then replace \(M\) with the string "M*" in the output.
The output should contain the sorted list with elements separated by a single space.
inputFormat
The input consists of a single line containing 7 unique integers separated by spaces.
Example:
3050 7498 1234 9876 4321 5678 8765
outputFormat
Output the 7 numbers sorted in ascending order, where the highest sale is marked with an asterisk (*) and all values are separated by a single space.
Example:
1234 3050 4321 5678 7498 8765 9876*## sample
3050 7498 1234 9876 4321 5678 8765
1234 3050 4321 5678 7498 8765 9876*
</p>