#include <bits/stdc++.h>
int main() {
  int a, b, c, d, e, f, g, m, n;
  scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
  scanf("%d", &g);
  n = (a + b + c);
  m = (d + e + f);
  if (n % 5 == 0 && m % 10 == 0 && g >= (m / 10) + (n / 5))
    printf("YES");
  else if ((n % 5 == 0 || m % 10 == 0) && g >= n / 5 + m / 10 + 1)
    printf("YES");
  else if (g >= n / 5 + m / 10 + 2)
    printf("YES");
  else
    printf("NO");
  return 0;
}
