import math


def findmin(a, b):
    if a < b:
        return a
    else:
        return b


r1 , r2 = input().split()
r1 = int(r1)
r2 = int(r2)

c1, c2 = input().split()
c1 = int(c1)
c2 = int(c2)

e1, e2 = input().split()
e1 = int(e1)
e2 = int(e2)

a1, a2, a3, a4 = 0, 0, 0, abs(r1-r2)


a2 = abs(c2 - a4)

a1 = abs(r1 - a2)

a3 = abs(c1 - a1)

s = set()
s.add(a1)
s.add(a2)
s.add(a3)
s.add(a4)

if len(s) == 4:
    print(a1, a2)
    print(a3, a4)
else:
    print(-1)

