selection sort
//I Love Java
import java.util.*;
import java.io.*;
import java.util.stream.*;
import static java.util.Collections.*;
import static java.util.stream.Collectors.*;
public class Selection_Sort_P {
public static void main(String[] args) throws IOException {
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
List<Integer> arr = Stream.of(buffer.readLine().replaceAll(("\\s+$"), "").split(" ")).map(Integer::parseInt)
.collect(toList());
int high = arr.size();
selection_sort(arr, high);
System.out.println(arr);
}
public static void swap(List<Integer> arr, int i, int j) {
int temp = arr.get(i);
arr.set(i, arr.get(j));
arr.set(j, temp);
}
public static void selection_sort(List<Integer> arr, int high) {
for (int i = 0; i <= high - 1; i++) {
steps(arr, i, high);
}
}
public static void steps(List<Integer> arr, int start, int high) {
for (int i = start; i <= high - 1; i++) {
if (arr.get(i) < arr.get(start)) {
swap(arr, start, i);
}
}
}
}