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