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