import java.util.*;

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String a,b,c;
		a = scan.next();
		b = scan.next();
		c = scan.next();
		
		List<String> list = new ArrayList<String>();
		list.add (a);
		list.add (b);
		list.add (c);
		
		Collections.sort(list);
		
		System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2));
		
	}
} import java.util.*; util.* java class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String a,b,c;
		a = scan.next();
		b = scan.next();
		c = scan.next();
		
		List<String> list = new ArrayList<String>();
		list.add (a);
		list.add (b);
		list.add (c);
		
		Collections.sort(list);
		
		System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2));
		
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String a,b,c;
		a = scan.next();
		b = scan.next();
		c = scan.next();
		
		List<String> list = new ArrayList<String>();
		list.add (a);
		list.add (b);
		list.add (c);
		
		Collections.sort(list);
		
		System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2));
		
	} main {
		Scanner scan = new Scanner(System.in);
		String a,b,c;
		a = scan.next();
		b = scan.next();
		c = scan.next();
		
		List<String> list = new ArrayList<String>();
		list.add (a);
		list.add (b);
		list.add (c);
		
		Collections.sort(list);
		
		System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2));
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a a b b c; c a = scan.next() a scan.next() scan.next scan b = scan.next() b scan.next() scan.next scan c = scan.next() c scan.next() scan.next scan List<String> list = new ArrayList<String>(); list new ArrayList<String>() list.add (a) list.add list a list.add (b) list.add list b list.add (c) list.add list c Collections.sort(list) Collections.sort Collections list System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2)) System.out.println System.out System System.out list.get(0) + " " + list.get(1) + " " + list.get(2) " " list.get(1) list.get(0) + " " + list.get(1) + " " + list.get(2) list.get(0) list.get list 0 " " list.get(1) list.get list 1 " " list.get(2) list.get list 2 String args[] args
import java.util.*;

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String a,b,c;
		a = scan.next();
		b = scan.next();
		c = scan.next();
		
		List<String> list = new ArrayList<String>();
		list.add (a);
		list.add (b);
		list.add (c);
		
		Collections.sort(list);
		
		System.out.println(list.get(0) + " " + list.get(1) + " " + list.get(2));
		
	}
}