#include <bits/stdc++.h>
void print_pages(int n, int p, int k) {
  std::vector<int> vec;
  std::string s;
  bool is_one = false, is_end = false;
  for (int i = 0; i <= k; ++i) {
    int cp = p - k + i;
    if (cp < 1) continue;
    if (cp == n) is_end = true;
    if (cp == 1) is_one = true;
    vec.push_back(cp);
  }
  for (int i = 1; i <= k; ++i) {
    int cp = p + i;
    if (cp > n) continue;
    if (cp == n) is_end = true;
    vec.push_back(cp);
  }
  for (int i = 0; i < vec.size(); ++i) {
    if (vec[i] == 0) break;
    if (vec[i] == p)
      s += "(" + std::to_string(vec[i]) + ") ";
    else
      s += std::to_string(vec[i]) + " ";
  }
  if (is_one && is_end)
    std::cout << s;
  else if (is_one)
    std::cout << s << ">>";
  else if (is_end)
    std::cout << "<< " << s;
  else
    std::cout << "<< " << s << ">>";
}
int main() {
  int n, p, k;
  std::cin >> n >> p >> k;
  print_pages(n, p, k);
  return 0;
}
