#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  while (scanf("%d%d%d", &n, &m, &k) >= 1) {
    if (n == m) {
      if (n == 2) {
        if (k == 1) {
          printf("4\n");
          printf("1 2 3 4\n");
        } else {
          printf("%d\n", 2 * k + 1);
          for (int i = 0; i < k; i++) printf("1 ");
          printf("2 ");
          for (int i = 0; i < k - 1; i++) printf("3 ");
          printf("4\n");
        }
        continue;
      }
      printf("%d\n", 2 * k + 1);
      for (int i = 0; i < k; i++) printf("1 ");
      printf("%d ", n);
      for (int i = 0; i < k - 1; i++) printf("%d ", n + 1);
      printf("%d\n", 2 * n - 1);
    } else {
      if (k == 1 && m == n - 1) {
        printf("3\n");
        printf("1 %d %d\n", n, n + m);
        continue;
      }
      printf("%d\n", 2 * k);
      for (int i = 0; i < k; i++) printf("1 ");
      printf("%d ", n);
      for (int i = 0; i < k - 1; i++) printf("%d ", n + 1, " \n"[i == k - 2]);
      puts("");
    }
  }
  return 0;
}
