import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String[] city = new String[3];
int i=0;
while(i<3){
city[i] = input.nextLine(); i++;
}
Stream.of(city[0], city[1], city[2]).sorted().forEach(s->System.out.print(s + " "));
}
}