from operator import eq, gt, lt S, T, c = input().split() pred = {'<': lt, '>': gt, '=': eq} print('YES' if pred[c](int(S), int(T)) else 'NO')