#include <bits/stdc++.h>
#pragma comment(linker, "/stack:50000000")
using namespace std;
const int Direction[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
const int Nmax = 301030;
int main() {
  ios_base::sync_with_stdio(0);
  int a = 0, b = 0;
  int x;
  for (int i = 1; i < (int)(3 + 1); ++i) {
    cin >> x;
    a += x;
  }
  for (int i = 1; i < (int)(3 + 1); ++i) {
    cin >> x;
    b += x;
  }
  int n;
  cin >> n;
  int c = a / 5;
  if (a % 5 != 0) c++;
  int d = b / 10;
  if (b % 10 != 0) d++;
  if (c + d <= n)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
