#include <bits/stdc++.h>
int main() {
  int a1, a2, a3, b1, b2, b3, c0, p, q, x, y;
  scanf("%d%d%d", &a1, &a2, &a3);
  scanf("%d%d%d", &b1, &b2, &b3);
  scanf("%d", &c0);
  p = a1 + a2 + a3;
  q = b1 + b2 + b3;
  if (p % 5 == 0)
    x = p / 5;
  else
    x = p / 5 + 1;
  if (q % 10 == 0)
    y = q / 10;
  else
    y = q / 10 + 1;
  if (x + y <= c0) {
    printf("YES");
  } else {
    printf("NO");
  }
}
