#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  if (n == m) {
    if (n == 2 && k == 1) {
      cout << "4" << endl;
      cout << "1 2 3 4";
    } else {
      cout << 2 * k + 1 << endl;
      for (int j = 0; j < k; j++) {
        cout << "1"
             << " ";
      }
      cout << n << " ";
      for (int j = 0; j < k - 1; j++) {
        cout << n + 1 << " ";
      }
      if (k == 1)
        cout << n + m - 1;
      else
        cout << n + m;
    }
  } else if (n == m + 1 && k == 1) {
    cout << "3" << endl;
    cout << "1"
         << " " << n << " " << n + m;
  } else {
    cout << 2 * k << endl;
    for (int j = 0; j < k; j++) {
      cout << "1"
           << " ";
    }
    cout << n << " ";
    for (int j = 0; j < k - 1; j++) {
      cout << n + 1 << " ";
    }
  }
}
