def main(): s, t, c = input().split() c = c.replace('=', '==') print('YES' if eval(s+c+t) else 'NO') if __name__ == '__main__': main()