#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const int INF = 0x3f3f3f3f;
const long long M = 1e9 + 7;
int main() {
  int n, p, k;
  while (scanf("%d%d%d", &n, &p, &k) == 3) {
    int l, r;
    if (p - k < 1)
      l = 1;
    else
      l = p - k;
    if (p + k > n)
      r = n;
    else
      r = p + k;
    if (l != 1) printf("<< ");
    for (int i = l; i <= r; i++) {
      if (i == p)
        printf("(%d) ", i);
      else
        printf("%d ", i);
    }
    if (r != n) printf(">>");
    printf("\n");
  }
  return 0;
}
