#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[4], b[4], s1 = 0, s2 = 0, m, n, i, p;
  for (i = 0; i < 3; i++) {
    cin >> a[i];
    s1 = s1 + a[i];
  }
  for (i = 0; i < 3; i++) {
    cin >> b[i];
    s2 = s2 + b[i];
  }
  cin >> p;
  if (s1 % 5 == 0)
    m = s1 / 5;
  else
    m = (s1 / 5) + 1;
  if (s2 % 10 == 0)
    n = s2 / 10;
  else
    n = s2 / 10 + 1;
  if (m + n <= p)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
