#include <bits/stdc++.h>
int main() {
  short a1, a2, a3;
  short b1, b2, b3;
  short n, ans = 0;
  std::cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  a1 += a2 += a3;
  b1 += b2 += b3;
  ans += a1 / 5;
  if (a1 % 5) ans++;
  ans += b1 / 10;
  if (b1 % 10) ans++;
  if (ans > n)
    std::cout << "NO";
  else
    std::cout << "YES";
  return 0;
}
