#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int x, y, z, n;
  cin >> a >> b >> c >> x >> y >> z >> n;
  a += b + c;
  x += y + z;
  int p = (a + 4) / 5 + (x + 9) / 10;
  n -= p;
  if (n >= 0) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
