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