#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a1, a2, a3, b1, b2, b3, s, r;
  cin >> a1 >> a2 >> a3;
  cin >> b1 >> b2 >> b3;
  cin >> n;
  int k = (a1 + a2 + a3) / 5;
  int l = (b1 + b2 + b3) / 10;
  int p = (a1 + a2 + a3) % 5;
  int o = (b1 + b2 + b3) % 10;
  if (p != 0) k++;
  if (o != 0) l++;
  if (l + k <= n)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
