a, b1, b2, b3, b4, b5 = list(map(int, input().strip().split()))
if a < (a+b1+b2+b3+b4+b5)/30:
    print('Yes')
else:
    print('No')