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