#include <bits/stdc++.h>
using namespace std;
int main() {
  int k = 0, k1 = 0, s = 0, s1 = 0, m = 0;
  for (int i = 0; i < 3; i++) {
    cin >> k;
    s = s + k;
  }
  for (int i = 0; i < 3; i++) {
    cin >> k1;
    s1 = s1 + k1;
  }
  int n;
  cin >> n;
  while (s > 0) {
    s = s - 5;
    n--;
  }
  while (s1 > 0) {
    s1 = s1 - 10;
    n--;
  }
  if (n < 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
