#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    int cups = 0, medals = 0, n, x;
    for (int i = 0; i < 3; i++) {
        cin >> x;
        cups += x;
    }
    for (int i = 0; i < 3; i++) {
        cin >> x;
        medals += x;
    }
    cin >> n;
    cout << ((cups + 4) / 5 + (medals + 9) / 10 <= n ? "YES" : "NO") << '\n';
}
