#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, last, kol = 0;
  int ans[20000];
  cin >> n >> m >> k;
  last = n;
  for (int i = 0; i < k; i++) {
    kol++;
    ans[kol] = 1;
  }
  while (last < n + m) {
    kol++;
    ans[kol] = last;
    if (k > 1) {
      last++;
    }
    for (int i = 0; i < k - 1; i++) {
      kol++;
      ans[kol] = last;
    }
    last += n - 1;
  }
  if (last == n + m) {
    kol++;
    ans[kol] = last;
  }
  cout << kol << "\n";
  for (int i = 0; i < kol; i++) {
    cout << ans[i + 1] << " ";
  }
  return 0;
}
