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