#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, sum_a = 0, sum_b = 0, n;
  for (int i = 0; i < 3; i++) {
    cin >> a;
    sum_a += a;
  }
  for (int i = 0; i < 3; i++) {
    cin >> b;
    sum_b += b;
  }
  if (sum_a % 5 != 0)
    sum_a = sum_a / 5 + 1;
  else
    sum_a /= 5;
  if (sum_b % 10 != 0)
    sum_b = sum_b / 10 + 1;
  else
    sum_b /= 10;
  cin >> n;
  if (n >= sum_a + sum_b)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
