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