l=input().split() i=int print('YNeos'[not(i(l[0])i(l[1])if l[2]=='>'else i(l[0])==i(l[1]))::2])