#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p, k, l, r;
  cin >> n >> p >> k;
  l = max(p - k, 1);
  r = min(p + k, n);
  if (l != 1) cout << "<< ";
  for (register int i = l; i <= r; i++) {
    if (i == p)
      cout << '(' << i << ')';
    else
      cout << i;
    if (i != r) cout << ' ';
  }
  if (r != n) cout << " >>";
  return 0;
}
