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