#include <bits/stdc++.h>
using namespace std;
int n, m, num, cnt, ret, a[5000];
int main() {
  scanf("%d%d%d", &n, &m, &num);
  cnt = 0;
  for (int i = (0); i < (n + m); i++) {
    if (cnt < num) {
      a[i + n - 1] += num - cnt;
      ret += num - cnt;
      cnt = num;
    }
    cnt -= a[i];
    if (!cnt) ++cnt, a[i + n - 1]++, ret++;
  }
  printf("%d\n", ret);
  for (int i = (0); i < (3000); i++)
    while (a[i]--) printf("%d ", i - n + 2);
  return 0;
}
