#include <bits/stdc++.h>
// #define int long long
using namespace std;
using ll = long long;
using ull = unsigned long long;
signed main()
{
// ios::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
int a, b, c, x, y, z, n;
cin >> a >> b >> c >> x >> y >> z >> n;
int total = a * x + b * y + c * z;
if (n >= total)
{
cout << "YES" << endl;
}
else if (n + 50 >= total)
{
cout << "V me 50" << endl;
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
return 0;
}