s,t,c = map(str,input().split()) if c == ">": print("YNeos"[not(s>t)::2]) elif c == "<": print("YNeos"[not(s