#include <bits/stdc++.h>
using namespace std;
int n, p, k, j = 1, m;
int main() {
  cin >> n >> p >> k;
  if (p - k > 1) cout << "<<";
  for (int i = 0; j <= 2 * k; i++) {
    if (m != 1 && i != k) {
      if (p - k + i > 0) {
        cout << " " << p - k + i;
        m = 0;
      }
    }
    if (i == k && m != 1) {
      cout << " (" << p << ")";
      i = 1;
      m = 1;
    }
    if (m == 1) {
      if (p + i <= n) {
        cout << " " << p + i;
        m = 1;
      }
    }
    j++;
  }
  if (p + k < n) cout << " >>";
}
