#include <bits/stdc++.h>
using namespace std;
struct point {
  long double x, y;
};
long long max(long long a, long long b) { return (a > b) ? a : b; }
long long mid(long long a, long long b, long long c) {
  return (a > b)   ? (b > c)   ? b
                     : (c > a) ? a
                               : c
         : (a > c) ? a
         : (c > b) ? b
                   : c;
}
long long min(long long a, long long b) { return (a < b) ? a : b; }
long long gcd(long long a, long long b) { return (b == 0) ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return (a / gcd(a, b)) * b; }
long long binpow(long long a, long long b) {
  return (b == 0)       ? 1
         : (b % 2 == 1) ? binpow(a, b - 1) * a
                        : binpow(a, b / 2) * binpow(a, b / 2);
}
long long fact(long long a) {
  long long result = 1;
  for (long long i = 2; i <= a; i++) result *= i;
  return result;
}
const int MAXN = 1e5 + 5;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a, b, c, d, e, f, n, cubes, medals, cnt;
  cin >> a >> b >> c >> d >> e >> f >> n;
  cubes = a + b + c;
  medals = d + e + f;
  cnt = ceil(cubes / 5.0) + ceil(medals / 10.0);
  if (cnt <= n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
