a, p, q = list(map(str, input().split(' '))) if p == q: print('No') else: print('Yes')