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