#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, s, i, p, q, c = 1, l = 0, r = 0, z = 0;
  cin >> n >> k >> s;
  if (s > ((n - 1) * k) || k > s) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    while (s >= n - 1 && s - n >= k - 1) {
      if (c == 1) {
        cout << n << " ";
        c = n;
        s = s - (n - 1);
        k--;
      } else if (c == n) {
        cout << 1 << " ";
        c = 1;
        s = s - (n - 1);
        k--;
      }
    }
    while (k > 0) {
      if (k == 1) {
        if (c + s > n) {
          c = c - s;
        } else {
          c = c + s;
        }
        cout << c << " ";
        k--;
      } else {
        if (c + abs(s - k) + 1 > n) {
          c = c - abs(s - k) - 1;
        } else {
          c = c + abs(s - k) + 1;
        }
        cout << c << " ";
        k--;
        s = k;
        while (s != 0 && k != 0) {
          c++;
          if (c > n) {
            c = c - 2;
          }
          cout << c << " ";
          s--;
          k--;
        }
      }
    }
  }
}
