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