import java.io.*;
import java.util.*;
public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	}
} Main public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	} main {
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	} Scanner cin= new Scanner(System.in); cin new Scanner(System.in) int a= cin.nextInt(); a cin.nextInt() cin.nextInt cin int b= cin.nextInt(); b cin.nextInt() cin.nextInt cin int c= cin.nextInt(); c cin.nextInt() cin.nextInt cin int buf; buf if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		} a>b || a>c a>b a b a>c a c {
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		} buf= a buf a if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			} b<c b c {
				a=b;
				b=buf;
			} a=b a b b=buf b buf {
				a=c;
				c=buf;
			} a=c a c c=buf c buf if( b>c ){
			buf=b;
			b=c;
			c=buf;
		} b>c b c {
			buf=b;
			b=c;
			c=buf;
		} buf=b buf b b=c b c c=buf c buf System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c String args[] args public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	}
} public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String args[]) throws Exception{
		Scanner cin= new Scanner(System.in);
		int a= cin.nextInt();
		int b= cin.nextInt();
		int c= cin.nextInt();
		
		int buf;
		
		if( a>b || a>c ){
			buf= a;
			if(	b<c ){
				a=b;
				b=buf;
			}
			else{
				a=c;
				c=buf;
			}
		}
		if( b>c ){
			buf=b;
			b=c;
			c=buf;
		}
		
		System.out.println(a+" "+b+" "+c);
	}
}