import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	}

	static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	}
}

class IntPointer {
	int ast; //value
	IntPointer(int n) {
		this.ast = n;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	}

	static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] abc = sc.nextLine().split(" "); abc sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int a = Integer.parseInt(abc[0]); a Integer.parseInt(abc[0]) Integer.parseInt Integer abc[0] abc 0 int b = Integer.parseInt(abc[1]); b Integer.parseInt(abc[1]) Integer.parseInt Integer abc[1] abc 1 int c = Integer.parseInt(abc[2]); c Integer.parseInt(abc[2]) Integer.parseInt Integer abc[2] abc 2 IntPointer pa = new IntPointer(a); pa new IntPointer(a) IntPointer pb = new IntPointer(b); pb new IntPointer(b) IntPointer pc = new IntPointer(c); pc new IntPointer(c) sorting3(pa, pb, pc) sorting3 pa pb pc System.out.println(pa.ast + " " + pb.ast + " " + pc.ast) System.out.println System.out System System.out pa.ast + " " + pb.ast + " " + pc.ast " " pb.ast pa.ast + " " + pb.ast + " " + pc.ast pa.ast pa pa.ast " " pb.ast pb pb.ast " " pc.ast pc pc.ast String[] args args static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	} sorting3 {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	} if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		} pa.ast > pb.ast pa.ast pa pa.ast pb.ast pb pb.ast {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		} int temp = pa.ast; temp pa.ast pa pa.ast pa.ast = pb.ast pa.ast pa pa.ast pb.ast pb pb.ast pb.ast = temp pb.ast pb pb.ast temp if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		} pb.ast > pc.ast pb.ast pb pb.ast pc.ast pc pc.ast {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		} int temp = pb.ast; temp pb.ast pb pb.ast pb.ast = pc.ast pb.ast pb pb.ast pc.ast pc pc.ast pc.ast = temp pc.ast pc pc.ast temp if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		} pa.ast > pb.ast pa.ast pa pa.ast pb.ast pb pb.ast {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		} int temp = pa.ast; temp pa.ast pa pa.ast pa.ast = pb.ast pa.ast pa pa.ast pb.ast pb pb.ast pb.ast = temp pb.ast pb pb.ast temp IntPointer pa pa IntPointer pb pb IntPointer pc pc class IntPointer {
	int ast; //value
	IntPointer(int n) {
		this.ast = n;
	}
} IntPointer int ast; //value ast IntPointer(int n) {
		this.ast = n;
	} IntPointer {
		this.ast = n;
	} this.ast = n this.ast this this.ast n int n n public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	}

	static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	}

	static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] abc = sc.nextLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		IntPointer pa = new IntPointer(a);
		IntPointer pb = new IntPointer(b);
		IntPointer pc = new IntPointer(c);

		sorting3(pa, pb, pc);

		System.out.println(pa.ast + " " + pb.ast + " " + pc.ast);
	}

	static void sorting3(IntPointer pa, IntPointer pb, IntPointer pc) {
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}
		if (pb.ast > pc.ast) {
			int temp = pb.ast;
			pb.ast = pc.ast;
			pc.ast = temp;
		}
		if (pa.ast > pb.ast) {
			int temp = pa.ast;
			pa.ast = pb.ast;
			pb.ast = temp;
		}

	}
}

class IntPointer {
	int ast; //value
	IntPointer(int n) {
		this.ast = n;
	}
}