n,m=input().split() n=int(n) m=int(m) if n>= 15 and m>= 10 or n>= 25 or m>=30: print("YES") else: print("NO")