#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n, p, k;
  cin >> n >> p >> k;
  long long low = p - k;
  long long up = p + k;
  if (low > 1) cout << "<< ";
  if (low <= 1) low = 1;
  for (long long i = low; i < p; i++) {
    cout << i << " ";
  }
  cout << "(" << p << ") ";
  if (up > n) up = n;
  for (long long i = p + 1; i <= up; i++) cout << i << " ";
  if (up < n) cout << ">>";
  return 0;
}
