#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a1, a2, a3, b1, b2, b3, cups(0), medals(0), cu(0), sh(0);
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  cups = a1 + a2 + a3;
  medals = b1 + b2 + b3;
  if (cups <= 5 && cups > 0)
    n--;
  else
    while (cups > 5) {
      n--;
      cups -= 5;
      if (cups <= 5) n--;
    }
  if (medals <= 10 && medals > 0)
    n--;
  else
    while (medals > 10) {
      n--;
      medals -= 10;
      if (medals <= 10) n--;
    }
  if (n >= 0)
    cout << "YES";
  else
    cout << "NO";
}
