#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int rep = n + m;
  int I = 0;
  vector<int> out;
  while (I < rep) {
    if (!I) {
      for (int i = 0; i < k; i++) out.push_back(I);
      I += n - 1;
    } else {
      if (I + 1 < rep)
        for (int i = 0; i < k; i++) out.push_back(I + (i != 0));
      else
        out.push_back(I);
      I += n - 1;
      if (k - 1) I++;
    }
  }
  cout << out.size() << endl;
  for (int i = 0; i < out.size(); i++) {
    cout << out[i] + 1 << " ";
  }
  return 0;
}
