#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, p, q, r, s, x, n;
  cin >> a >> b >> c >> p >> q >> r >> n;
  x = a + b + c;
  s = p + q + r;
  if (x % 5 != 0)
    x = x / 5 + 1;
  else
    x = x / 5;
  if (s % 10 != 0)
    s = s / 10 + 1;
  else
    s = s / 10;
  if ((x + s) <= n)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
