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