#include <bits/stdc++.h>
using namespace std;
int a[3], b[3], n;
int main() {
  cin >> a[0] >> a[1] >> a[2];
  cin >> b[0] >> b[1] >> b[2];
  cin >> n;
  cout << ((a[0] + a[1] + a[2] + 4) / 5 + (b[0] + b[1] + b[2] + 9) / 10 > n
               ? "NO\n"
               : "YES\n");
}
