#include <bits/stdc++.h>
using namespace std;
template <typename T>
void printArray(T a) {
  for (auto i : a) cout << i << " ";
  cout << "\n";
}
template <typename T>
void print2DArray(T a) {
  for (auto i : a) {
    for (auto j : i) cout << j << " ";
    cout << "\n";
  }
  cout << "\n";
}
int main(int argc, char *argv[]) {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int x = 1;
  int y = 1;
  int z = 1;
  int a = 1;
  int b = 1;
  int c = 1;
  cin >> x >> y >> z >> a >> b >> c;
  if (x > a) {
    cout << "NO"
         << "\n";
    return 0;
  }
  a -= x;
  if (a + b < y) {
    cout << "NO"
         << "\n";
    return 0;
  }
  if (a < y) {
    y = (y - a);
    a = 0;
  } else {
    a -= y;
    y = 0;
  }
  if (y > 0) {
    if (b < y) {
      y = (y - b);
      b = 0;
    } else {
      b -= y;
      y = 0;
    }
  }
  if (a + b + c < z) {
    cout << "NO"
         << "\n";
    return 0;
  } else {
    cout << "YES"
         << "\n";
  }
  return 0;
}
