#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int day[2000000];
vector<int> ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m >> k;
  for (int i = 0; i < k; i++) ans.push_back(1);
  for (int i = 1; i <= n; i++) day[i] = k;
  int pt = n;
  while (pt < 1 + m + n) {
    if (day[pt] < k) {
      int rem = k - day[pt];
      for (int i = 0; i < rem; i++) ans.push_back(pt);
      for (int i = pt; i < pt + n; i++) day[i] += rem;
    }
    if (day[pt + 1] == 0) {
      ans.push_back(pt);
      for (int i = pt; i < pt + n; i++) day[i]++;
    }
    pt = pt + 1;
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
