import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if(a <= b && b <= c){
System.out.print(a + " " + b + " " + c);
}
else if(b <= a && a <= c){
System.out.print(b + " " + a + " " + c);
}
else if(c <= a && a <= b){
System.out.print(c + " " + a + " " + b);
}
else if(a <= c && c <= b){
System.out.print(a + " " + c + " " + b);
}
else if(b <= c && c <= a){
System.out.print(b + " " + c + " " + a);
}
else if(c <= b && b <= a){
System.out.print(c + " " + b+ " " + a);
}
}
}

package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if(a <= b && b <= c){
System.out.print(a + " " + b + " " + c);
}
else if(b <= a && a <= c){
System.out.print(b + " " + a + " " + c);
}
else if(c <= a && a <= b){
System.out.print(c + " " + a + " " + b);
}
else if(a <= c && c <= b){
System.out.print(a + " " + c + " " + b);
}
else if(b <= c && c <= a){
System.out.print(b + " " + c + " " + a);
}
else if(c <= b && b <= a){
System.out.print(c + " " + b+ " " + a);
}
}
}