#coding:utf-8

import sys

 

abc=sys.stdin.readline()

nums=abc.split( ' ' )

for i in range( len( nums) ):

	nums[i] = int( nums[i] )

nums.sort()

print(( "{} {} {}".format( nums[0], nums[1], nums[2] ) ))
import sys



nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]

nums = sorted( nums )

print(( "{:d} {:d} {:d}".format( nums[0], nums[1], nums[2] ) ))	
# coding:utf-8
import sys

abc = sys.stdin.readline()
nums = abc.split(" ")
for i in range(len(nums)):
    nums[i] = int(nums[i])
nums.sort()
print(("{} {} {}".format(nums[0], nums[1], nums[2])))

import sys

nums = [int(val) for val in sys.stdin.readline().split(" ")]
nums = sorted(nums)
print(("{:d} {:d} {:d}".format(nums[0], nums[1], nums[2])))

-# coding:utf-8 -abc = sys.stdin.readline() -nums = abc.split(" ") -for i in range(len(nums)): -    nums[i] = int(nums[i]) -nums.sort() -print(("{} {} {}".format(nums[0], nums[1], nums[2]))) +nums = [int(val) for val in sys.stdin.readline().split(" ")] +nums = sorted(nums) +print(("{:d} {:d} {:d}".format(nums[0], nums[1], nums[2])))