Codeforces Round 262 (Div. 2)
D
Little Victor and Set
Codeforces
2300
原题
← CE →
翻译中…

Little Victor adores the sets theory. Let us remind you that a set is a group of numbers where all numbers are pairwise distinct. Today Victor wants to find a set of integers $*S*$ that has the following properties:

翻译中…
  • for all $*x*$ image the following inequality holds $*l* ≤ *x* ≤ *r*$;
  • $1 ≤ |*S*| ≤ *k*$;
  • lets denote the $*i*$-th element of the set $*S*$ as $*s*_{*i*}$; value image must be as small as possible.
翻译中…

Help Victor find the described set.

翻译中…

Input

翻译中…

The first line contains three space-separated integers $*l*, *r*, *k*$ $(1 ≤ *l* ≤ *r* ≤ 10^{12}; 1 ≤ *k* ≤ *min*(10^{6}, *r* - *l* + 1))$.

翻译中…

Output

翻译中…

Print the minimum possible value of $*f*(*S*)$. Then print the cardinality of set $|*S*|$. Then print the elements of the set in any order.

翻译中…

If there are multiple optimal sets, you can print any of them.

翻译中…

Note

翻译中…

Operation image represents the operation of bitwise exclusive OR. In other words, it is the XOR operation.

翻译中…

样例

Input #1
8 15 3
Output #1
1
2
10 11
InputCopy OutputCopy
Input #2
8 30 7
Output #2
0
5
14 9 28 11 16
InputCopy OutputCopy
题目信息
题号
460D
时间限制
1 s
内存限制
256 MB
标签
暴力
构造
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。