nums = tuple(map(int, input().split()))
s = set(nums)
if len(s) == 2:
    print('Yes')
else:
    print("No") nums = tuple(map(int, input().split())) nums tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split s = set(nums) s set(nums) set nums if len(s) == 2:
    print('Yes')
else:
    print("No") len(s) == 2 len(s) len s 2 print('Yes') print 'Yes' print("No") print "No" nums = tuple(map(int, input().split())) tuple(map(int, input().split())) nums s = set(nums) set(nums) s
nums = tuple(map(int, input().split()))
s = set(nums)
if len(s) == 2:
    print('Yes')
else:
    print("No")
