#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  int sum = 0;
  sum += a;
  sum += b;
  sum += c;
  scanf("%d%d%d", &a, &b, &c);
  int sum1 = 0;
  sum1 += a;
  sum1 += b;
  sum1 += c;
  int n;
  scanf("%d", &n);
  n -= (sum + 4) / 5;
  n -= (sum1 + 9) / 10;
  if (n >= 0)
    printf("YES\n");
  else
    printf("NO\n");
}
