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



if a <= b <= c:

	print((a, b, c))

elif a <= c <= b:

	print((a, c, b))

elif b <= a <= c:

	print((b, a, c))

elif b <= c <= a:

	print((b, c, a))

elif c <= a <= b:

	print((c, a, b))

elif c <= b <= a:

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

[x, y, z] = sorted([a, b, c])

print((x, y, z))
a, b, c = list(map(int, input().split()))
if a <= b <= c:
    print((a, b, c))
elif a <= c <= b:
    print((a, c, b))
elif b <= a <= c:
    print((b, a, c))
elif b <= c <= a:
    print((b, c, a))
elif c <= a <= b:
    print((c, a, b))
elif c <= b <= a:
    print((c, b, a))

a, b, c = list(map(int, input().split()))
[x, y, z] = sorted([a, b, c])
print((x, y, z))

-if a <= b <= c: -    print((a, b, c)) -elif a <= c <= b: -    print((a, c, b)) -elif b <= a <= c: -    print((b, a, c)) -elif b <= c <= a: -    print((b, c, a)) -elif c <= a <= b: -    print((c, a, b)) -elif c <= b <= a: -    print((c, b, a)) +[x, y, z] = sorted([a, b, c]) +print((x, y, z))