using System;
using System.Linq;
namespace _0001
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();       
                int[] mountain = new int[] { a[0],a[1],a[2] };
            Array.Sort(mountain);
            Console.WriteLine(mountain[0]+" "+mountain[1]+" "+mountain[2]);
        }
    }
}