#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 = max(p - k, 1LL); i <= p - 1; i++) cout << i << " ";
  cout << "(" << p << ")"
       << " ";
  for (long long i = p + 1; i <= min(n, p + k); i++) cout << i << " ";
  if (p + k < n) cout << ">>";
}
