#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3, b1, b2, b3, n;
  while (cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n) {
    long long a, b, sum = 0;
    a = a1 + a2 + a3;
    b = b1 + b2 + b3;
    if (a % 5 == 0) {
      sum += a / 5;
    } else {
      sum += a / 5 + 1;
    }
    if (b % 10 == 0) {
      sum += b / 10;
    } else {
      sum += b / 10 + 1;
    }
    if (sum <= n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
