#include <bits/stdc++.h>
using namespace std;
void _fill_int(int* p, int val, int rep) {
  int i;
  for (i = 0; i < rep; i++) p[i] = val;
}
signed long long L, R, K;
void solve() {
  int f, i, j, k, l, x, y;
  cin >> L >> R >> K;
  if (K == 1) return (void)printf("%lld\n1\n%lld\n", L, L);
  if (R - L == 1) {
    if ((L ^ R) < L)
      return (void)printf("%lld\n2\n%lld %lld\n", L ^ R, L, L + 1);
    return (void)printf("%lld\n1\n%lld\n", L, L);
  }
  if (R - L <= 10) {
    int mask;
    for (mask = 0; mask < 1 << (R - L + 1); mask++)
      if (mask) {
        signed long long tot = 0;
        for (i = 0; i < R - L + 1; i++)
          if (mask & (1 << i)) tot ^= L + i;
        if (tot == 0 && __builtin_popcount(mask) <= K) {
          (void)printf("0\n%d\n", __builtin_popcount(mask));
          for (i = 0; i < R - L + 1; i++)
            if (mask & (1 << i)) (void)printf("%lld ", L + i);
          return;
        }
      }
  }
  if (K >= 3) {
    int lb = 0;
    while (1LL << (lb + 1) <= L) lb++;
    signed long long aa = (1LL << (1 + lb)) + (L - (1LL << lb));
    signed long long bb = (1LL << (1 + lb)) + (1LL << lb);
    if (bb <= R)
      return (void)printf("%lld\n3\n%lld %lld %lld\n", 0LL, L, aa, bb);
  }
  L = (L + 1) / 2 * 2;
  if (L + 3 < R && K >= 4)
    return (void)printf("0\n4\n%lld %lld %lld %lld\n", L, L + 1, L + 2, L + 3);
  (void)printf("1\n2\n%lld %lld\n", L, L + 1);
}
int main(int argc, char** argv) {
  string s;
  if (argc == 1) ios::sync_with_stdio(false);
  for (int i = 1; i < argc; i++) s += argv[i], s += '\n';
  for (int i = s.size() - 1; i >= 0; i--) ungetc(s[i], stdin);
  solve();
  return 0;
}
