# No.795 Restrictions!!!!!!!!!!!!!! n, m = [int(input()) for i in range(2)] print('YES')