#include <bits/stdc++.h>
using namespace std;
int check(int day, vector<pair<int, int> > e, int n, int m) {
  int work = 0;
  for (auto &i : e) {
    if (day - i.first + 2 <= n) {
      work += i.second;
    }
  }
  return work;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int m;
  cin >> m;
  int k;
  cin >> k;
  vector<pair<int, int> > e;
  int cur = 0;
  int ans = 0;
  for (int i = 1; i <= m + n; ++i) {
    if (cur < k) {
      e.push_back(make_pair(i, k - cur));
      ans += k - cur;
      cur = k;
    }
    int work = check(i, e, n, m);
    cur = work;
    if (work == 0) {
      if (i > e[e.size() - 1].first) {
        e.push_back({i, 1});
        ans += 1;
        cur = 1;
      } else {
        e[e.size() - 1].second += 1;
        ans += 1;
        cur = 1;
      }
    }
  }
  cout << ans << '\n';
  for (auto &i : e) {
    while (i.second--) cout << i.first << " ";
  }
  return 0;
}
