line = list(input().split())
line.sort()
if line[0] != line[2]:
    if line[0] == line[1] or line[1] == line[2]:
        print("Yes")
    else:
        print("No")
else:
    print("No") line = list(input().split()) line list(input().split()) list input().split() ().split () input split line.sort() line.sort line sort if line[0] != line[2]:
    if line[0] == line[1] or line[1] == line[2]:
        print("Yes")
    else:
        print("No")
else:
    print("No") line[0] != line[2] line[0] line 0 line[2] line 2 if line[0] == line[1] or line[1] == line[2]:
        print("Yes")
    else:
        print("No") line[0] == line[1] or line[1] == line[2] line[0] == line[1] line[0] line 0 line[1] line 1 line[1] == line[2] line[1] line 1 line[2] line 2 print("Yes") print "Yes" print("No") print "No" print("No") print "No" line = list(input().split()) list(input().split()) line
line = list(input().split())
line.sort()
if line[0] != line[2]:
    if line[0] == line[1] or line[1] == line[2]:
        print("Yes")
    else:
        print("No")
else:
    print("No")