#!/usr/bin/env python

# coding: utf-8



def main():

	values = [int(x) for x in input().split(" ")]

	if values[0] > values[1]:

		values[0], values[1] = values[1], values[0]

	if values[1] > values[2]:

		values[1], values[2] = values[2], values[1]

	if values[0] > values[1]:

		values[0], values[1] = values[1], values[0]

	print("%s %s %s" % tuple(values))



if __name__ == '__main__':

	main()
if __name__ == '__main__':

    a, b, c = list(map(int, input().split()))

    if a < b:

        if b < c:

            print(a, b, c)

        elif a < c:

            print(a, c, b)

        else:

            print(c, a, b)

    else:

        if a < c:

            print(b, a, c)

        elif b < c:

            print(b, c, a)

        else:

            print(c, b, a)
#!/usr/bin/env python
# coding: utf-8
def main():
    values = [int(x) for x in input().split(" ")]
    if values[0] > values[1]:
        values[0], values[1] = values[1], values[0]
    if values[1] > values[2]:
        values[1], values[2] = values[2], values[1]
    if values[0] > values[1]:
        values[0], values[1] = values[1], values[0]
    print("%s %s %s" % tuple(values))


if __name__ == "__main__":
    main()

if __name__ == "__main__":
    a, b, c = list(map(int, input().split()))
    if a < b:
        if b < c:
            print(a, b, c)
        elif a < c:
            print(a, c, b)
        else:
            print(c, a, b)
    else:
        if a < c:
            print(b, a, c)
        elif b < c:
            print(b, c, a)
        else:
            print(c, b, a)

-#!/usr/bin/env python -# coding: utf-8 -def main(): -    values = [int(x) for x in input().split(" ")] -    if values[0] > values[1]: -        values[0], values[1] = values[1], values[0] -    if values[1] > values[2]: -        values[1], values[2] = values[2], values[1] -    if values[0] > values[1]: -        values[0], values[1] = values[1], values[0] -    print("%s %s %s" % tuple(values)) - - -    main() +    a, b, c = list(map(int, input().split())) +    if a < b: +        if b < c: +            print(a, b, c) +        elif a < c: +            print(a, c, b) +        else: +            print(c, a, b) +    else: +        if a < c: +            print(b, a, c) +        elif b < c: +            print(b, c, a) +        else: +            print(c, b, a)