#include <bits/stdc++.h>
using namespace std;
int main() {
  long a[5], b[5], n, cu, medal, x, y;
  cin >> a[1] >> a[2] >> a[3];
  cu = a[1] + a[2] + a[3];
  cin >> b[1] >> b[2] >> b[3];
  medal = b[1] + b[2] + b[3];
  cin >> n;
  if (cu % 5 == 0)
    x = cu / 5;
  else
    x = cu / 5 + 1;
  if (medal % 10 == 0)
    y = medal / 10;
  else
    y = medal / 10 + 1;
  if (n == 1 && cu > 0 && medal > 0 || x + y > n)
    cout << "NO";
  else
    cout << "YES";
}
