#include <bits/stdc++.h>
using namespace std;
int main() {
  int c, c1, c2, c3, m, m1, m2, m3, n;
  cin >> c1 >> c2 >> c3 >> m1 >> m2 >> m3;
  c = c1 + c2 + c3;
  m = m1 + m2 + m3;
  if (c % 5)
    c = c / 5 + 1;
  else
    c /= 5;
  if (m % 10)
    m = m / 10 + 1;
  else
    m /= 10;
  cin >> n;
  if (n >= m + c)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
