#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-6;
int main() {
  int n, p, k;
  while (~scanf("%d%d%d", &n, &p, &k)) {
    int fi = p - k, la = p + k;
    if (fi <= 1)
      fi = 1;
    else
      printf("<< ");
    for (int i = fi; i < p; i++) {
      if (i != fi) putchar(' ');
      printf("%d", i);
    }
    if (p != fi) putchar(' ');
    printf("(%d)", p);
    if (la >= n) la = n;
    for (int i = p + 1; i <= la; i++) {
      if (i != fi) putchar(' ');
      printf("%d", i);
    }
    if (la != n) printf(" >>");
    putchar('\n');
  }
  return 0;
}
