rec = sorted(list(map(int, input().split())))

print(("yes" if rec[0]==rec[1] and rec[2]==rec[3] else "no"))
e = sorted(map(int, input().split()))

print(("yes" if e[0] == e[1] and e[2] == e[3] else "no"))
rec = sorted(list(map(int, input().split())))
print(("yes" if rec[0] == rec[1] and rec[2] == rec[3] else "no"))

e = sorted(map(int, input().split()))
print(("yes" if e[0] == e[1] and e[2] == e[3] else "no"))

-rec = sorted(list(map(int, input().split()))) -print(("yes" if rec[0] == rec[1] and rec[2] == rec[3] else "no")) +e = sorted(map(int, input().split())) +print(("yes" if e[0] == e[1] and e[2] == e[3] else "no"))