#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3;
  int b1, b2, b3;
  int n, k1, k2, sum1, sum2, s1, s2;
  cin >> a1 >> a2 >> a3;
  cin >> b1 >> b2 >> b3;
  cin >> n;
  sum1 = a1 + a2 + a3;
  sum2 = b1 + b2 + b3;
  k1 = k2 = 0;
  if (sum1 != 0) {
    s1 = sum1 / 5;
    if (s1 == 0) {
      k1++;
    } else {
      k1 += s1;
      if (sum1 % 5 != 0) {
        k1++;
      }
    }
  } else {
    k1 = 0;
  }
  if (sum2 != 0) {
    s2 = sum2 / 10;
    if (s2 == 0) {
      k2++;
    } else {
      k2 += s2;
      if (sum2 % 10 != 0) {
        k2++;
      }
    }
  } else {
    k2 = 0;
  }
  if (k1 + k2 <= n) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
