#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int main() {
  int x, a = 0, b = 0;
  for (int i = 0; i < 3; i++) {
    scanf("%d", &x);
    a += x;
  }
  for (int i = 0; i < 3; i++) {
    scanf("%d", &x);
    b += x;
  }
  scanf("%d", &x);
  if ((a + 4) / 5 + (b + 9) / 10 <= x)
    puts("YES");
  else
    puts("NO");
  return 0;
}
