{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"农夫约翰命令他的奶牛们寻找一组不同的数字,这些数字的和为给定的数字。奶牛们只使用整数幂为2的数字。以下是和为7的可能数字组合:\u003cbr\u003e\n\u003cbr\u003e\n1) 1+1+1+1+1+1+1\u003cbr\u003e\n2) 1+1+1+1+1+2\u003cbr\u003e\n3) 1+1+1+2+2\u003cbr\u003e\n4) 1+1+1+4\u003cbr\u003e\n5) 1+2+2+2\u003cbr\u003e\n6) 1+2+4\u003cbr\u003e\n\u003cbr\u003e\n帮助约翰农夫计算给定整数N (1 \u003c\u003d N \u003c\u003d 1,000,000) 的所有可能表示方式。"}},{"title":"输入","value":{"format":"HTML","content":"一行,包含一个整数N。"}},{"title":"输出","value":{"format":"HTML","content":"表示N的和的方式数量。由于这个数字可能非常大,只打印最后9位数字(以十进制表示)。"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e7\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e6\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}