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