#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p, k;
  cin >> n >> p >> k;
  int c1 = p - k;
  int c2 = p + k;
  if (c1 <= 1) {
    for (int i = 1; i <= p; i++) {
      if (i == p)
        cout << "(" << i << ")"
             << " ";
      else
        cout << i << " ";
    }
  } else {
    cout << "<< ";
    for (int i = c1; i <= p; i++) {
      if (i == p)
        cout << "(" << i << ")"
             << " ";
      else
        cout << i << " ";
    }
  }
  int flag = 0;
  for (int i = p + 1; i <= c2; i++) {
    if (i > n) {
      flag = 1;
      break;
    }
    if (i == n) {
      cout << i;
      flag = 1;
      break;
    } else
      cout << i << " ";
  }
  if (flag == 0) cout << ">>";
}
