#include <bits/stdc++.h>
using namespace std;
int a, b, c, A, B, C, n;
int main() {
  cin >> a >> b >> c >> A >> B >> C >> n;
  if (n >= (a + b + c + 4) / 5 + (A + B + C + 9) / 10)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
