#include <bits/stdc++.h>
using namespace std;
int main() {
  int a0, a1, a2, b0, b1, b2, n;
  cin >> a0 >> a1 >> a2;
  int cnt = (a0 + a1 + a2) / 5;
  if ((a0 + a1 + a2) % 5) cnt++;
  cin >> b0 >> b1 >> b2;
  cnt += ((b0 + b1 + b2) / 10);
  if ((b0 + b1 + b2) % 10) cnt++;
  cin >> n;
  if (cnt <= n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
