s = int(input()) t = int(input()) if s > 10 and t > 10: print("YES") else: print("NO")