s, t, c = input().split() def check(): int(s) int(t) if c == '<': return s < t elif c == '>': return s > t else: return s == t if check(): print('YES') else: print('NO')