#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, n;
  cin >> a >> b >> c >> d >> e >> f >> n;
  if ((a + b + c + 4) / 5 + (d + e + f + 9) / 10 > n) {
    cout << "NO" << endl;
  } else
    cout << "YES" << endl;
  return 0;
}
