import java.util.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while (in.hasNext()){ String[] str = in.nextLine().split(" "); int len = str.length; ArrayList<String> list = new ArrayList<String>(Arrays.asList(str)); Collections.sort(list); for (int i = 0; i < len; i++){ if (i != len - 1){ System.out.print(list.get(i) + " "); }else{ System.out.print(list.get(i)); } } System.out.println(); } } }