import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a<b)
{
if(a<c)
System.out.println(c + " "+b+ " "+a);
else
System.out.println(b+ " "+a+" "+c);
}else
{
if(b<c)
System.out.println(a+" "+c+" "+b);
else
System.out.println(c+" "+b+" "+a);
}
}
}
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a<b)
{
if(a<c)
System.out.println(c + " "+b+ " "+a);
else
System.out.println(b+ " "+a+" "+c);
}else
{
if(b<c)
System.out.println(a+" "+c+" "+b);
else
System.out.println(c+" "+b+" "+a);
}
}
}