#include<bits/stdc++.h>
using namespace std;
int main(){
    int c,s,a1,a2,a3;
    float x,h;
    cin>>c>>s>>a1>>a2>>a3;
    x=c/s;
    h=x+a1+a2+a3;
    if(h<=20){
    	cout<<"YES"<<endl;
	}
	else {
		cout<<"NO"<<endl;
	}
    return 0;
}
/**************************************************************
	Problem: 1634
	User: xiaojingxuan
	Language: C++
	Result: Accepted
	Time:5 ms
	Memory:2072 kb
****************************************************************/