A, B, C, D = input().split() l = set([A, B, C, D]) if len(l) == 4: print('Yes') else: print('No')