a,b,c,d=map(int,input().split()) l=[a,b,c,d] print('YNeos'[not(a!=b!=c!=d and sum(l)==min(l)*4+6)::2])