s, t, c = input().split() s = int(s) t = int(t) ans = ( s < t if c == '<' else s > t if c == '>' else s == t ) print('YES' if ans else 'NO')