#include <bits/stdc++.h>
using namespace std;
int n, shafs[101];
int a[4], b[4];
int main() {
  int cups = 0, meds = 0;
  for (int i = 1; i <= 3; i++) cin >> a[i];
  for (int i = 1; i <= 3; i++) cin >> b[i];
  cin >> n;
  for (int i = 1; i <= 3; i++) meds += b[i], cups += a[i];
  int m = 0, c = 0;
  if (meds % 10 == 0)
    m = meds / 10;
  else
    m = meds / 10 + 1;
  if (cups % 5 == 0)
    c = cups / 5;
  else
    c = cups / 5 + 1;
  if (c + m <= n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
