#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[3], b[3], suma = 0, sumb = 0, i, flag = 0, ans = 1, count = 1;
  for (i = 0; i < 3; i++) {
    cin >> a[i];
    suma += a[i];
  }
  for (i = 0; i < 3; i++) {
    cin >> b[i];
    sumb += b[i];
  }
  cin >> n;
  if (suma % 5 == 0) count = 0;
  if (sumb % 10 == 0) ans = 0;
  if (suma / 5 + sumb / 10 + count + ans <= n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
