X = input() Y = input() if Y <= X: print("YES") else: print("NO")