#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, trash, cups = 0, medals = 0;
  cin >> trash;
  cups += trash;
  cin >> trash;
  cups += trash;
  cin >> trash;
  cups += trash;
  cin >> trash;
  medals += trash;
  cin >> trash;
  medals += trash;
  cin >> trash;
  medals += trash;
  cin >> n;
  cups = cups % 5 == 0 ? cups / 5 : cups / 5 + 1;
  medals = medals % 10 == 0 ? medals / 10 : medals / 10 + 1;
  if (medals + cups <= n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
