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