#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a1, a2, a3, b1, b2, b3;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  if (n >= (a1 + a2 + a3 + 4) / 5 + (b1 + b2 + b3 + 9) / 10)
    cout << "YES";
  else
    cout << "NO";
}
