#include <bits/stdc++.h>
using namespace std;
void solve() {
  int i, j, n, x, ans = 0;
  cin >> n >> x;
  int a[n], b[n];
  for (i = 0; i < n; i++) cin >> a[i];
  for (i = 0; i < n; i++) cin >> b[i];
  sort(a, a + n);
  sort(b, b + n, greater<int>());
  i = 0;
  j = 0;
  cout << 1 << " ";
  while (i < n) {
    if (a[i] + b[j] >= x) j++;
    i++;
  }
  cout << j;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
