#include <bits/stdc++.h>
using namespace std;
void fre() {
  freopen("c://test//input.in", "r", stdin);
  freopen("c://test//output.out", "w", stdout);
}
template <class T1, class T2>
inline void gmax(T1 &a, T2 b) {
  if (b > a) a = b;
}
template <class T1, class T2>
inline void gmin(T1 &a, T2 b) {
  if (b < a) a = b;
}
const int N = 0, M = 0, Z = 1e9 + 7, ms63 = 0x3f3f3f3f;
int a1, a2, a3;
int b1, b2, b3;
int n;
int main() {
  while (~scanf("%d%d%d%d%d%d%d", &a1, &a2, &a3, &b1, &b2, &b3, &n)) {
    int ma = (a1 + a2 + a3 + 4) / 5;
    int mb = (b1 + b2 + b3 + 9) / 10;
    puts(ma + mb <= n ? "YES" : "NO");
  }
  return 0;
}
