#include <bits/stdc++.h>
using namespace std;
void iWork() {
  int a1, a2, a3, b1, b2, b3, n;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  n -= ceil((a1 + a2 + a3) / 5.0) + ceil((b1 + b2 + b3) / 10.0);
  if (n >= 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  iWork();
  return 0;
}
