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