#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a1, a2, a3, b1, b2, b3, n;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  if (((a1 + a2 + a3 + 4) / 5 + (b1 + b2 + b3 + 9) / 10) <= n)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  int n = 1;
  while (n--) solve();
  return 0;
}
