s,t,c = map(str,input().split()) che = False if c == '<': if s < t: che =True elif c == '>': if s > t: che = True elif c == '=': if s == t: che = True print('YES') if che else print('NO')