
import java.io.*;


class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] str2 = str.split(" ",0);
	int[] num = new int[3];
	for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	}
	int a,b,c,temp1,temp2;
	if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	}
	if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	}
	System.out.println(c+" "+b+" "+a);	
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] str2 = str.split(" ",0);
	int[] num = new int[3];
	for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	}
	int a,b,c,temp1,temp2;
	if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	}
	if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	}
	System.out.println(c+" "+b+" "+a);	
    }
} Main public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] str2 = str.split(" ",0);
	int[] num = new int[3];
	for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	}
	int a,b,c,temp1,temp2;
	if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	}
	if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	}
	System.out.println(c+" "+b+" "+a);	
    } main {
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] str2 = str.split(" ",0);
	int[] num = new int[3];
	for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	}
	int a,b,c,temp1,temp2;
	if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	}
	if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	}
	System.out.println(c+" "+b+" "+a);	
    } BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] str2 = str.split(" ",0); str2 str.split(" ",0) str.split str " " 0 int[] num = new int[3]; num new int[3] 3 for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
	    num[i] = Integer.parseInt(str2[i]);
	} {
	    num[i] = Integer.parseInt(str2[i]);
	} num[i] = Integer.parseInt(str2[i]) num[i] num i Integer.parseInt(str2[i]) Integer.parseInt Integer str2[i] str2 i int a a b b c c temp1 temp1 temp2; temp2 if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	} num[0]<=num[1] num[0] num 0 num[1] num 1 {
	    temp1 = num[1];
	    temp2 = num[0];
	} temp1 = num[1] temp1 num[1] num 1 temp2 = num[0] temp2 num[0] num 0 {
	    temp1 = num[0];
	    temp2 = num[1];
	} temp1 = num[0] temp1 num[0] num 0 temp2 = num[1] temp2 num[1] num 1 if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	} temp1<=num[2] temp1 num[2] num 2 {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	} a = num[2] a num[2] num 2 b = temp1 b temp1 c = temp2 c temp2 if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	} temp1>=num[2] && num[2] >=temp2 temp1>=num[2] temp1 num[2] num 2 num[2] >=temp2 num[2] num 2 temp2 {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	} a = temp1 a temp1 b = num[2] b num[2] num 2 c = temp2 c temp2 {
	    a = temp1;
	    b = temp2;
	    c = num[2];
	} a = temp1 a temp1 b = temp2 b temp2 c = num[2] c num[2] num 2 System.out.println(c+" "+b+" "+a) System.out.println System.out System System.out c+" "+b+" "+a " " b c+" "+b+" "+a c " " b " " a String[] args args

import java.io.*;


class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] str2 = str.split(" ",0);
	int[] num = new int[3];
	for (int i = 0; i < 3; i++) {
	    num[i] = Integer.parseInt(str2[i]);
	}
	int a,b,c,temp1,temp2;
	if (num[0]<=num[1]) {
	    temp1 = num[1];
	    temp2 = num[0];
	}
	else{
	    temp1 = num[0];
	    temp2 = num[1];
	}
	if (temp1<=num[2]) {
	    a = num[2];
	    b = temp1;
	    c = temp2;
	}
	else if (temp1>=num[2] && num[2] >=temp2) {
	    a = temp1;
	    b = num[2];
	    c = temp2;
	}
	else{
	    a = temp1;
	    b = temp2;
	    c = num[2];
	}
	System.out.println(c+" "+b+" "+a);	
    }
}