S, T, c = input().split() S = int(S) T = int(T) if c=="<": ans = S": ans = S>T else: ans = S==T print("YES" if ans else "NO")