using System;
public class Program
{
public static void Main()
// declarar las variables iniciales y finales
int a;
int b;
int c;
int x;
int y;
int z;
// pedimos los 3 numeros y los almacenamos
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
// primer if para comparar los dos primeros numeros
if (a < b)
x = a;
y = b;
}
else
y = a;
x = b;
// segundo if para colocar el tercer número
if (c < x)
z = y;
y = x;
x = c;
else if (c > y)
z = c;
y = c;
// pruebas de salida
Console.WriteLine(x);
Console.WriteLine(y);
Console.WriteLine(z);