s, f = sorted(list(map(int, input().split()))), True
if s[0] == s[1] and s[1] != s[2]: f = False
if s[1] == s[2] and s[0] != s[1]: f = False
print('No' if f else 'Yes') s, f = sorted(list(map(int, input().split()))), True s sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split f True if s[0] == s[1] and s[1] != s[2]: f = False s[0] == s[1] and s[1] != s[2] s[0] == s[1] s[0] s 0 s[1] s 1 s[1] != s[2] s[1] s 1 s[2] s 2 if s[1] == s[2] and s[0] != s[1]: f = False s[1] == s[2] and s[0] != s[1] s[1] == s[2] s[1] s 1 s[2] s 2 s[0] != s[1] s[0] s 0 s[1] s 1 print('No' if f else 'Yes') print 'No' if f else 'Yes' f 'No' 'Yes' f = sorted(list(map(int, input().split()))), True True f s, f = sorted(list(map(int, input().split()))), True sorted(list(map(int, input().split()))) s
s, f = sorted(list(map(int, input().split()))), True
if s[0] == s[1] and s[1] != s[2]: f = False
if s[1] == s[2] and s[0] != s[1]: f = False
print('No' if f else 'Yes')