#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3, c1, c2, c3, n, z = 0;
  cin >> a1 >> a2 >> a3 >> c1 >> c2 >> c3 >> n;
  z += ceil(float(a1 + a2 + a3) / float(5)) +
       ceil(float(c1 + c2 + c3) / float(10));
  if (n >= z)
    cout << "YES";
  else
    cout << "NO";
}
