#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p, k;
  cin >> n >> p >> k;
  bool st = false, en = false;
  if (p + k < n) en = true;
  if (p - k > 1) st = true;
  for (int i = max(1, p - k); i <= min(p + k, n); ++i) {
    if (st) cout << "<< ", st = false;
    if (i == p) cout << "(";
    cout << i;
    if (i != p) cout << " ";
    if (i == p) cout << ") ";
  }
  if (en) cout << ">>";
}
