#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a1, a2, a3, b1, b2, b3, sum = 0;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  int sum1 = a1 + a2 + a3, sum2 = b1 + b2 + b3;
  if ((sum1 + 4) / 5 + (sum2 + 9) / 10 <= n)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
