import java.util.Scanner;

class Main{
  public static void main(String[] args) {
    
	  Scanner sc = new Scanner(System.in);
	  
	  int a = sc.nextInt();
	  
	  int b = sc.nextInt();
	  
	  int c = sc.nextInt();
	  
	  int min = 0;
	  int chuu = 0;
	  int max = 0;
	  
	  if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  }
	
	  System.out.println(max+" "+chuu+" "+min);
	  
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args) {
    
	  Scanner sc = new Scanner(System.in);
	  
	  int a = sc.nextInt();
	  
	  int b = sc.nextInt();
	  
	  int c = sc.nextInt();
	  
	  int min = 0;
	  int chuu = 0;
	  int max = 0;
	  
	  if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  }
	
	  System.out.println(max+" "+chuu+" "+min);
	  
  }
} Main public static void main(String[] args) {
    
	  Scanner sc = new Scanner(System.in);
	  
	  int a = sc.nextInt();
	  
	  int b = sc.nextInt();
	  
	  int c = sc.nextInt();
	  
	  int min = 0;
	  int chuu = 0;
	  int max = 0;
	  
	  if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  }
	
	  System.out.println(max+" "+chuu+" "+min);
	  
  } main {
    
	  Scanner sc = new Scanner(System.in);
	  
	  int a = sc.nextInt();
	  
	  int b = sc.nextInt();
	  
	  int c = sc.nextInt();
	  
	  int min = 0;
	  int chuu = 0;
	  int max = 0;
	  
	  if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  }
	
	  System.out.println(max+" "+chuu+" "+min);
	  
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int min = 0; min 0 int chuu = 0; chuu 0 int max = 0; max 0 if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  } a>=b a b {
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  } if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;} a>=c a c {min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  } min=a min a if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;} b>=c b c {chuu=b;max=c;} chuu=b chuu b max=c max c {chuu=c;max=b;} chuu=c chuu c max=b max b {min=c;chuu=a;max=b;} min=c min c chuu=a chuu a max=b max b {if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  } if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;} b>=c b c {min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  } min=b min b if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;} a>=c a c {chuu=a;max=c;} chuu=a chuu a max=c max c {chuu=c;max=a;} chuu=c chuu c max=a max a {min=c;chuu=b;max=a;} min=c min c chuu=b chuu b max=a max a System.out.println(max+" "+chuu+" "+min) System.out.println System.out System System.out max+" "+chuu+" "+min " " chuu max+" "+chuu+" "+min max " " chuu " " min String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args) {
    
	  Scanner sc = new Scanner(System.in);
	  
	  int a = sc.nextInt();
	  
	  int b = sc.nextInt();
	  
	  int c = sc.nextInt();
	  
	  int min = 0;
	  int chuu = 0;
	  int max = 0;
	  
	  if(a>=b){
		  if(a>=c){min=a;if(b>=c){chuu=b;max=c;}
		  else{chuu=c;max=b;}
		  }else{min=c;chuu=a;max=b;}
		  }else{if(b>=c){min=b;if(a>=c){chuu=a;max=c;}
		  else{chuu=c;max=a;}
		  }else{min=c;chuu=b;max=a;}
		  }
	
	  System.out.println(max+" "+chuu+" "+min);
	  
  }
}