import sys sys.setrecursionlimit(10 ** 6) INF = float('inf') MOD = 10**9 + 7 MOD2 = 998244353 def solve(): def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LC(): return list(input()) def IC(): return [int(c) for c in input()] def MI(): return map(int, sys.stdin.readline().split()) STC = list(map(str, sys.stdin.readline().split())) if(STC[2] == "<"): if(int(STC[0]) < int(STC[1])): print("YES") else: print("NO") elif(STC[2] == ">"): if(int(STC[0]) > int(STC[1])): print("YES") else: print("NO") else: if(int(STC[0]) == int(STC[1])): print("YES") else: print("NO") return solve()