#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3;
  int b1, b2, b3;
  int n;
  int a = 0;
  scanf("%d%d%d", &a1, &a2, &a3);
  int sum = a1 + a2 + a3;
  a = ceil(sum / (double)5);
  scanf("%d%d%d", &b1, &b2, &b3);
  int tmp = b1 + b2 + b3;
  a += ceil(tmp / (double)10);
  scanf("%d", &n);
  if (a <= n)
    printf("YES\n");
  else
    printf("NO\n");
}
