#include <bits/stdc++.h>
using namespace std;
using ld = long double;
using ll = long long;
using vi = vector<int>;
using pii = pair<int, int>;
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int c = 0, m = 0, x, n;
  for (int i = 0; i < 3; i++) {
    cin >> x;
    c += x;
  }
  for (int i = 0; i < 3; i++) {
    cin >> x;
    m += x;
  }
  cin >> n;
  int i = 0;
  while (i < n and c > 0) {
    c -= 5;
    i++;
  }
  while (i < n and m > 0) {
    m -= 10;
    i++;
  }
  if (m <= 0 and c <= 0)
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0;
}
