#include <bits/stdc++.h>
using namespace std;
int main() {
  double a[3], b[3], n, cupsum = 0, medalsum = 0;
  cin >> a[0] >> a[1] >> a[2];
  cin >> b[0] >> b[1] >> b[2];
  cin >> n;
  cupsum = a[0] + a[1] + a[2];
  medalsum = b[0] + b[1] + b[2];
  n -= ceil(cupsum / 5);
  n -= ceil(medalsum / 10);
  if (n >= 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
