import java.util.Scanner; //ASCII码排序 public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str; char[] ch = new char[3]; char temp; while(scan.hasNext()){ str = scan.next(); for(int i=0;i<3;i++) ch[i] = str.charAt(i); for(int j=0;j<3;j++){ for(int i=0;i<2;i++) if(ch[i]>ch[i+1]){ temp = ch[i]; ch[i] = ch[i+1]; ch[i+1] = temp; } } for(int i=0;i<2;i++) System.out.print(ch[i]+" "); System.out.println(ch[2]); } } }