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