s,t,c = input().split() print("YES" if eval(s+c+t) else "NO")