from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n = li()
N = []
N.append(n[0])

for i in range(1,3,1):
    if n[i] in N: continue
    N.append(n[i])

if len(N) == 2:
    print('Yes')
else:
    print('No') from sys import exit import math math ii = lambda : int(input()) ii lambda : int(input()) int(input()) int input() input mi = lambda : map(int,input().split()) mi lambda : map(int,input().split()) map(int,input().split()) map int input().split() ().split () input split li = lambda : list(map(int,input().split())) li lambda : list(map(int,input().split())) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split n = li() n li() li N = [] N [] N.append(n[0]) N.append N append n[0] n 0 for i in range(1,3,1):
    if n[i] in N: continue
    N.append(n[i]) i range(1,3,1) range 1 3 1 if n[i] in N: continue
     n[i] in N n[i] n i N N.append(n[i]) N.append N append n[i] n i if len(N) == 2:
    print('Yes')
else:
    print('No') len(N) == 2 len(N) len N 2 print('Yes') print 'Yes' print('No') print 'No' mi = lambda : map(int,input().split()) lambda : map(int,input().split()) mi li = lambda : list(map(int,input().split())) lambda : list(map(int,input().split())) li n = li() li() n N = [] [] N ii = lambda : int(input()) lambda : int(input()) ii
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n = li()
N = []
N.append(n[0])

for i in range(1,3,1):
    if n[i] in N: continue
    N.append(n[i])

if len(N) == 2:
    print('Yes')
else:
    print('No')