import sys

input = sys.stdin.readline



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



from collections import Counter



c = Counter(A)



for i in list(c.values()):

    if i == 2:

        print("Yes")

        sys.exit()

print("No")

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

from collections import Counter

import sys

c = Counter(A)



for i in list(c.values()):

  if i == 2:

    print("Yes")

    sys.exit()



print("No")
import sys

input = sys.stdin.readline
A = [int(x) for x in input().split()]
from collections import Counter

c = Counter(A)
for i in list(c.values()):
    if i == 2:
        print("Yes")
        sys.exit()
print("No")

A = [int(x) for x in input().split()]
from collections import Counter
import sys

c = Counter(A)
for i in list(c.values()):
    if i == 2:
        print("Yes")
        sys.exit()
print("No")

-import sys - -input = sys.stdin.readline +import sys