#include <bits/stdc++.h>
int main() {
  int a[3];
  int b[3];
  scanf("%d%d%d", &a[0], &a[1], &a[2]);
  scanf("%d%d%d", &b[0], &b[1], &b[2]);
  int n;
  int suma = 0, sumb = 0;
  scanf("%d", &n);
  suma = a[0] + a[1] + a[2];
  sumb = b[0] + b[1] + b[2];
  int numa = 0, numb = 0;
  if (suma % 5 == 0)
    numa = suma / 5;
  else
    numa = suma / 5 + 1;
  if (sumb % 10 == 0)
    numb = sumb / 10;
  else
    numb = sumb / 10 + 1;
  if (numa + numb <= n)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
