#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, m, k, ans = 0;
  vector<int> H;
  scanf("%d %d %d", &n, &m, &k);
  ans = k + k;
  int last = -1;
  int lastlast = -1;
  if (k == 1) {
    if (n == m) {
      last = n + m - 1;
      ans++;
      if (n == 2) {
        lastlast = n + m;
        ans++;
      }
    } else if (n == m + 1) {
      last = n + m;
      ans++;
    }
  } else {
    if (n == m) {
      last = n + m;
      ans++;
    }
  }
  printf("%d\n", ans);
  for (int i = 0; i < k; i++) printf("1 ");
  printf("%d ", n);
  for (int i = 0; i + 1 < k; i++) printf("%d ", n + 1);
  if (last != -1) printf("%d ", last);
  if (lastlast != -1) printf("%d ", lastlast);
  putchar('\n');
  return EXIT_SUCCESS;
}
