s = int(input()) t = int(input()) if s > 3 or t < 7: print("YES") else: print("NO")