#include <bits/stdc++.h>
using namespace std;
int subArraySum(int arr[], int n, int sum) {
  int curr_sum = arr[0], start = 0, i;
  for (i = 1; i <= n; i++) {
    while (curr_sum > sum && start < i - 1) {
      curr_sum = curr_sum - arr[start];
      start++;
    }
    if (curr_sum == sum) {
      for (int j = start; j < i; j++) cout << arr[j] << ' ';
      return 0;
    }
    if (i < n) curr_sum = curr_sum + arr[i];
  }
  return 0;
}
int main() {
  int arr[100000000];
  int n, k, sum;
  cin >> n >> k >> sum;
  for (int i = 0; i < 1000000000; i++) arr[i] = i + 1;
  subArraySum(arr, n, sum);
  return 0;
}
