#include <bits/stdc++.h>
int main() {
  int a1, a2, a3;
  scanf("%d %d %d", &a1, &a2, &a3);
  int b1, b2, b3;
  scanf("%d %d %d", &b1, &b2, &b3);
  int n;
  scanf("%d", &n);
  int cups = a1 + a2 + a3;
  int medals = b1 + b2 + b3;
  int num_shelfs = ceil(cups / 5.0) + ceil(medals / 10.0);
  if (num_shelfs <= n)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
