#include <bits/stdc++.h>
using namespace std;
long long Xor(long long x, long long y) { return x ^ y; }
void Qmin(vector<long long> &a, const vector<long long> b) {
  if (accumulate(b.begin(), b.end(), 0LL, Xor) <
      accumulate(a.begin(), a.end(), 0LL, Xor))
    a = b;
}
int main() {
  long long l, r, k, x;
  cin >> l >> r >> k;
  vector<long long> ans;
  ans.push_back(l);
  if (k >= 2) {
    Qmin(ans, {l, l + 1});
    if (l + 2 <= r) Qmin(ans, {l + 1, l + 2});
  }
  if (k >= 3) {
    x = 1LL << (64 - __builtin_clzll(l));
    if (x + x / 2 <= r) ans = {x - 1, x + x / 2, x + x / 2 - 1};
  }
  if (k >= 4) {
    Qmin(ans, {l, l + 1, l + 2, l + 3});
    if (l + 4 <= r) Qmin(ans, {l + 1, l + 2, l + 3, l + 4});
  }
  cout << accumulate(ans.begin(), ans.end(), 0LL, Xor) << '\n'
       << ans.size() << '\n';
  for (int i = 0; i < ans.size(); ++i) cout << ans[i] << ' ';
  return 0;
}
