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