import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String x = reader.readLine();
String y = reader.readLine();
String z = reader.readLine();
int a = Integer.parseInt(x);
int b = Integer.parseInt(y);
int c = Integer.parseInt(z);
int i,j,k;
if (a>b&&a>c)
i = a;
else if (b>a&&b>c)
i = b;
else i = c;
if (a<b&& a<c)
j = a;
else if (b<a&& b<c)
j = b;
else
j = c;
if ((a > b && a < c)||(a < b && a > c))
k = a;
else if ((b > a && b < c)||(b < a && b > c))
k = b;
else
k = c;
System.out.println(j + " " + k + " " + i);
}}package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String x = reader.readLine();
String y = reader.readLine();
String z = reader.readLine();
int a = Integer.parseInt(x);
int b = Integer.parseInt(y);
int c = Integer.parseInt(z);
int max,min,ave;
if (a>b&&a>c)
max = a;
else if (b>a&&b>c)
max = b;
else max = c;
if (a<b&& a<c)
min = a;
else if (b<a&& b<c)
min = b;
else
min = c;
if ((a > b && a < c)&&(a < b && a > c))
ave = a;
else if ((b > a && b < c)&&(b < a && b > c))
ave = b;
else
ave = c;
System.out.println(" " + max + " " + ave + " " + min);
}}