#include <bits/stdc++.h>
int main() {
  int m1, m2, m3, mt, c1, c2, c3, ct, shelves, result1, result2;
  scanf("%d %d %d", &c1, &c2, &c3);
  ct = c1 + c2 + c3;
  scanf("%d %d %d", &m1, &m2, &m3);
  mt = m1 + m2 + m3;
  scanf("%d", &shelves);
  result1 = (5 * shelves) - ct;
  shelves = result1 / 5;
  result2 = (10 * shelves) - mt;
  if (result1 < 0 || result2 < 0)
    puts("NO");
  else
    puts("YES");
}
