ls = list(input().split(' '))
if ls.count(ls[0]) == 2 or ls.count(ls[1]) == 2:
    print('Yes')
else:
    print('No') ls = list(input().split(' ')) ls list(input().split(' ')) list input().split(' ') ().split () input split ' ' if ls.count(ls[0]) == 2 or ls.count(ls[1]) == 2:
    print('Yes')
else:
    print('No') ls.count(ls[0]) == 2 or ls.count(ls[1]) == 2 ls.count(ls[0]) == 2 ls.count(ls[0]) ls.count ls count ls[0] ls 0 2 ls.count(ls[1]) == 2 ls.count(ls[1]) ls.count ls count ls[1] ls 1 2 print('Yes') print 'Yes' print('No') print 'No' ls = list(input().split(' ')) list(input().split(' ')) ls
ls = list(input().split(' '))
if ls.count(ls[0]) == 2 or ls.count(ls[1]) == 2:
    print('Yes')
else:
    print('No')