#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum1 = 0, sum2 = 0, p, q, a, b;
  for (int i = 0; i < 3; i++) {
    cin >> a;
    sum1 += a;
  }
  for (int i = 0; i < 3; i++) {
    cin >> b;
    sum2 += b;
  }
  cin >> n;
  (sum1 % 5 == 0) ? p = sum1 / 5 : p = sum1 / 5 + 1;
  (sum2 % 10 == 0) ? q = sum2 / 10 : q = sum2 / 10 + 1;
  (p + q <= n) ? cout << "YES" : cout << "NO";
  cout << endl;
  return 0;
}
