#include <bits/stdc++.h>
using namespace std;
const int MAX = 2e5 + 8;
const int INF = 1e9 + 1e5 + 2;
int main() {
  int a1, a2, a3, b1, b2, b3, n;
  cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3 >> n;
  int a = (a1 + a2 + a3) / 5;
  int b = (b1 + b2 + b3) / 10;
  if ((a1 + a2 + a3) % 5 != 0) a++;
  if ((b1 + b2 + b3) % 10 != 0) b++;
  if (a + b <= n)
    cout << "YES";
  else
    cout << "NO";
}
