import java.util.Scanner;

  
public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  }
} import java.util.Scanner; Scanner java.util public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  }
} Main public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  } main {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b=Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c=Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x x y y z; z x=Math.max(a,b) x Math.max(a,b) Math.max Math a b z=Math.min(a, b) z Math.min(a, b) Math.min Math a b y=Math.max(x, c) y Math.max(x, c) Math.max Math x c int q=Math.min(x, c); q Math.min(x, c) Math.min Math x c int p=Math.max(z, q); p Math.max(z, q) Math.max Math z q int r=Math.min(z, q); r Math.min(z, q) Math.min Math z q System.out.println(r +" "+ p +" "+  y) System.out.println System.out System System.out r +" "+ p +" "+  y " " p r +" "+ p +" "+  y r " " p " " y String[] args args public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  }
} public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  }
} Main
import java.util.Scanner;

  
public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  
	  
	  
		  int a=Integer.parseInt(sc.next());
		  int b=Integer.parseInt(sc.next());
		  int c=Integer.parseInt(sc.next());
		  int x,y,z;
		  
		  x=Math.max(a,b);
		  z=Math.min(a, b);
		  y=Math.max(x, c);
		  int q=Math.min(x, c);
		  int p=Math.max(z, q);
		  int r=Math.min(z, q);

		  System.out.println(r +" "+ p +" "+  y);;
		  
  }
}