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