#include <bits/stdc++.h>
using namespace std;
const double eps(1e-8);
long long l, r, k;
int main() {
  cin >> l >> r >> k;
  vector<long long> ans;
  vector<long long> vec;
  if (k >= 5) {
    bool flag = false;
    for (long long i = l; i <= r; i++) {
      ans.clear();
      long long tmp = 0;
      for (long long j = i; j <= i + 4; j++) {
        ans.push_back(j);
        tmp ^= j;
        if (tmp == 0) {
          flag = true;
          break;
        }
      }
      if (flag) break;
    }
    cout << 0 << endl;
    cout << ans.size() << endl;
    for (int i = 0; i < (int)ans.size(); i++) {
      cout << ans[i] << " ";
    }
    cout << endl;
  } else {
    long long Min = (long long)1e15;
    for (long long i = l; i <= min(l + 100, r); i++) {
      vec.clear();
      long long tmp = 0;
      for (long long j = i; j <= min(i + k - 1, r); j++) {
        vec.push_back(j);
        tmp ^= j;
        if (tmp < Min) {
          Min = tmp;
          ans = vec;
        }
      }
      if (k >= 3) {
        vec.clear();
        long long x = 1;
        while (x <= i) x <<= 1;
        if (x + (x >> 1) <= r) {
          x += (x >> 1);
          Min = 0;
          vec.push_back(i);
          vec.push_back(x);
          vec.push_back(x ^ i);
          ans = vec;
          break;
        }
      }
    }
    cout << Min << endl;
    cout << ans.size() << endl;
    for (int i = 0; i < (int)ans.size(); i++) {
      cout << ans[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
