import sys
print('Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No') import sys sys print('Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No') print 'Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No' len(frozenset(sys.stdin.readline().split())) == 2 len(frozenset(sys.stdin.readline().split())) len frozenset(sys.stdin.readline().split()) frozenset sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split 2 'Yes' 'No'
import sys
print('Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No')