point1 = input() point2 = input() point3 = input() c = '' d = '' # Get two coordinates that are independent a = point1.split(' ') b = point2.split(' ') c = point3.split(' ') d = [] for i in range(2): if a[i]==b[i]: d.append(c[i]) elif a[i]==c[i] : d.append(b[i]) else : d.append(a[i]) print(d[0]+' '+d[1])