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