#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 = a1 + a2 + a3;
  B = b1 + b2 + b3;
  n -= ((A / 5) + ((A % 5) > 0 ? 1 : 0));
  n -= ((B / 10) + ((B % 10) > 0 ? 1 : 0));
  if (n >= 0)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
