#include <bits/stdc++.h>
using namespace std;
auto main() -> int {
  int n, p, k;
  cin >> n >> p >> k;
  if (p < 1 || p > n) return 0;
  if (p - k > 1) cout << "<< ";
  for (int i = p - k; i <= p + k; i++) {
    if (i < 1 || i > n) continue;
    if (i == p)
      cout << "(" << i << ") ";
    else
      cout << i << " ";
  }
  if (p + k < n) cout << ">>";
  cout << endl;
  return 0;
}
