def main():
    nums_set = set(map(int, input().split()))
    print('Yes' if len(nums_set) == 2 else 'No')


if __name__ == '__main__':
    main()

b1e31d5c7514318afa3d58339ebde4933da0654b
<mask token>

def main():
    nums_set = set(map(int, input().split()))
    print('Yes' if len(nums_set) == 2 else 'No')


<mask token>

def main():
    nums_set = set(map(int, input().split()))
    print('Yes' if len(nums_set) == 2 else 'No')


if __name__ == '__main__':
    main()
