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