a,b,c = map(int, input().split())
coins = [1,5,10,50,100,500]
if a==1 or a==5 or a==10 or a==50 or a==100 or a==500:
  if b==1 or b==5 or b==10 or b==50 or b==100 or b==500:
    if a+b >= c:
      print("Yes")
    else: print("No")
  else: print("No")
else: print("No")