import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int a = Integer.parseInt(div[0]);
		int b = Integer.parseInt(div[1]);
		int c = Integer.parseInt(div[2]);
		int num[] = new int[3];
		int x = 0;
		int y = 0;
		int z = 0;

		if (a > b){
			x++;
		} else {
			y++;
		}
		
		if (b > c){
			y++;
		} else {
			z++;
		}
		
		if (c > a){
			z++;
		} else {
			x++;
		}
		
		if (a == b && b == c){
			x++;
			z--;
		}
		
		num[x] = a;
		num[y] = b;
		num[z] = c;
		System.out.println(num[0] + " " + num[1] + " " + num[2]);

	}
} import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int a = Integer.parseInt(div[0]);
		int b = Integer.parseInt(div[1]);
		int c = Integer.parseInt(div[2]);
		int num[] = new int[3];
		int x = 0;
		int y = 0;
		int z = 0;

		if (a > b){
			x++;
		} else {
			y++;
		}
		
		if (b > c){
			y++;
		} else {
			z++;
		}
		
		if (c > a){
			z++;
		} else {
			x++;
		}
		
		if (a == b && b == c){
			x++;
			z--;
		}
		
		num[x] = a;
		num[y] = b;
		num[z] = c;
		System.out.println(num[0] + " " + num[1] + " " + num[2]);

	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int a = Integer.parseInt(div[0]);
		int b = Integer.parseInt(div[1]);
		int c = Integer.parseInt(div[2]);
		int num[] = new int[3];
		int x = 0;
		int y = 0;
		int z = 0;

		if (a > b){
			x++;
		} else {
			y++;
		}
		
		if (b > c){
			y++;
		} else {
			z++;
		}
		
		if (c > a){
			z++;
		} else {
			x++;
		}
		
		if (a == b && b == c){
			x++;
			z--;
		}
		
		num[x] = a;
		num[y] = b;
		num[z] = c;
		System.out.println(num[0] + " " + num[1] + " " + num[2]);

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int a = Integer.parseInt(div[0]);
		int b = Integer.parseInt(div[1]);
		int c = Integer.parseInt(div[2]);
		int num[] = new int[3];
		int x = 0;
		int y = 0;
		int z = 0;

		if (a > b){
			x++;
		} else {
			y++;
		}
		
		if (b > c){
			y++;
		} else {
			z++;
		}
		
		if (c > a){
			z++;
		} else {
			x++;
		}
		
		if (a == b && b == c){
			x++;
			z--;
		}
		
		num[x] = a;
		num[y] = b;
		num[z] = c;
		System.out.println(num[0] + " " + num[1] + " " + num[2]);

	} 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[] div = str.split(" "); div str.split(" ") str.split str " " int a = Integer.parseInt(div[0]); a Integer.parseInt(div[0]) Integer.parseInt Integer div[0] div 0 int b = Integer.parseInt(div[1]); b Integer.parseInt(div[1]) Integer.parseInt Integer div[1] div 1 int c = Integer.parseInt(div[2]); c Integer.parseInt(div[2]) Integer.parseInt Integer div[2] div 2 int num[] = new int[3]; num new int[3] 3 int x = 0; x 0 int y = 0; y 0 int z = 0; z 0 if (a > b){
			x++;
		} else {
			y++;
		} a > b a b {
			x++;
		} x++ x {
			y++;
		} y++ y if (b > c){
			y++;
		} else {
			z++;
		} b > c b c {
			y++;
		} y++ y {
			z++;
		} z++ z if (c > a){
			z++;
		} else {
			x++;
		} c > a c a {
			z++;
		} z++ z {
			x++;
		} x++ x if (a == b && b == c){
			x++;
			z--;
		} a == b && b == c a == b a b b == c b c {
			x++;
			z--;
		} x++ x z-- z num[x] = a num[x] num x a num[y] = b num[y] num y b num[z] = c num[z] num z c System.out.println(num[0] + " " + num[1] + " " + num[2]) System.out.println System.out System System.out num[0] + " " + num[1] + " " + num[2] " " num[1] num[0] + " " + num[1] + " " + num[2] num[0] num 0 " " num[1] num 1 " " num[2] num 2 String[] args args
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int a = Integer.parseInt(div[0]);
		int b = Integer.parseInt(div[1]);
		int c = Integer.parseInt(div[2]);
		int num[] = new int[3];
		int x = 0;
		int y = 0;
		int z = 0;

		if (a > b){
			x++;
		} else {
			y++;
		}
		
		if (b > c){
			y++;
		} else {
			z++;
		}
		
		if (c > a){
			z++;
		} else {
			x++;
		}
		
		if (a == b && b == c){
			x++;
			z--;
		}
		
		num[x] = a;
		num[y] = b;
		num[z] = c;
		System.out.println(num[0] + " " + num[1] + " " + num[2]);

	}
}