#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a[4], b[4], sum = 0, sum1 = 0, z = 0, l = 0;
  for (long long i = 1; i <= 3; i++) {
    cin >> a[i];
    sum += a[i];
  }
  for (long long j = 1; j <= 3; j++) {
    cin >> b[j];
    sum1 += b[j];
  }
  long long n;
  cin >> n;
  z = sum + sum1;
  if ((sum + 4) / 5 + (sum1 + 9) / 10 <= n) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
}
