#include <bits/stdc++.h>
using namespace std;
template <class L, class R>
ostream& operator<<(ostream& cout, pair<L, R> P) {
  return cout << '(' << P.first << ',' << P.second << ')';
}
template <class T>
ostream& operator<<(ostream& cout, vector<T> V) {
  cout << "[ ";
  for (auto v : V) cout << v << ' ';
  return cout << ']';
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, k;
  cin >> n >> k;
  std::vector<long long> inp(n);
  for (long long i = 0; i < n; ++i) {
    cin >> inp[i];
  }
  set<long long, greater<long long>> ones;
  map<long long, long long> make_pair;
  for (long long i = 0; i < k - 1; ++i) {
    if (make_pair[inp[i]] == 1) {
      ones.erase(inp[i]);
    }
    ++make_pair[inp[i]];
    if (make_pair[inp[i]] == 1) {
      ones.insert(inp[i]);
    }
  }
  for (long long i = k - 1; i < n; ++i) {
    if (make_pair[inp[i]] == 1) {
      ones.erase(inp[i]);
    }
    ++make_pair[inp[i]];
    if (make_pair[inp[i]] == 1) {
      ones.insert(inp[i]);
    }
    if (make_pair[inp[i - k]] == 1) {
      ones.erase(inp[i - k]);
    }
    --make_pair[inp[i - k]];
    if (make_pair[inp[i - k]] == 1) {
      ones.insert(inp[i - k]);
    }
    if (!ones.empty()) {
      cout << *ones.begin() << "\n";
    } else {
      cout << "Nothing\n";
    }
  }
}
