#include <bits/stdc++.h>
using namespace std;
int up(int a, int b) {
  if (a % b == 0) return a / b;
  return (a / b) + 1;
}
int main() {
  int a[3], b[3], c, d;
  c = 0;
  d = 0;
  for (int i = 0; i < 3; i++) {
    cin >> a[i];
    c = c + a[i];
  }
  for (int i = 0; i < 3; i++) {
    cin >> b[i];
    d = d + b[i];
  }
  int n;
  cin >> n;
  n -= up(c, 5);
  n -= up(d, 10);
  if (n >= 0) cout << "YES";
  if (n < 0) cout << "NO";
}
