SA, SB = input().split() if all(int(a) >= int(b) for a, b in zip(SA, SB)): print('Yes') else: print('No')