a = list(map(int,input().split())) if len(set(a)) == 4: print("Yes") else: print("No")