#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3, b1, b2, b3;
  cin >> a1 >> a2 >> a3;
  cin >> b1 >> b2 >> b3;
  int s1, s2;
  s1 = a1 + a2 + a3;
  s2 = b1 + b2 + b3;
  int g;
  cin >> g;
  if (s1 % 5 == 0)
    s1 = s1 / 5;
  else
    s1 = (s1 / 5) + 1;
  if (s2 % 10 == 0)
    s2 = s2 / 10;
  else
    s2 = (s2 / 10) + 1;
  if (s1 + s2 <= g)
    cout << "YES";
  else
    cout << "NO";
}
