#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3;
  int b1, b2, b3;
  int n;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3;
  cin >> n;
  n -= ceil((a1 + a2 + a3) / (double)5);
  n -= ceil((b1 + b2 + b3) / (double)10);
  if (n >= 0)
    cout << "YES\n";
  else
    cout << "NO\n";
}
