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