#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p, k, pp, e;
  cin >> n >> p >> k;
  int dd = abs(p - k);
  int yy = min(p + k, n);
  vector<int> v;
  if (p - k <= 0) {
    e = 1;
    dd = 1;
  } else
    e = abs(p - k);
  for (int i = e; i <= yy; i++) {
    v.push_back(dd);
    dd++;
  }
  int s = v.size();
  if (v[0] != 1) {
    if (v[s - 1] != n) {
      cout << "<< ";
      for (int i = 0; i < v.size(); i++) {
        if (v[i] == p)
          cout << "(" << p << ") ";
        else
          cout << v[i] << " ";
      }
      cout << ">>";
    } else {
      cout << "<< ";
      for (int i = 0; i < v.size(); i++) {
        if (v[i] == p)
          cout << "(" << p << ") ";
        else
          cout << v[i] << " ";
      }
    }
  } else {
    if (v[s - 1] != n) {
      for (int i = 0; i < v.size(); i++) {
        if (v[i] == p)
          cout << "(" << p << ") ";
        else
          cout << v[i] << " ";
      }
      cout << ">>";
    } else {
      for (int i = 0; i < v.size(); i++) {
        if (v[i] == p)
          cout << "(" << p << ") ";
        else
          cout << v[i] << " ";
      }
    }
  }
}
