#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>D; FOR(i,D+1) cin>>A[i]; for(i=10002;i>=3;i--) if(A[i]) { A[i-2]+=A[i]; A[i]=0; } if(A[2]) _P("2\n%d %d %d\n",A[0],A[1],A[2]); else if(A[1]) _P("1\n%d %d\n",A[0],A[1]); else _P("0 %d\n",A[0]); } int main(int argc,char** argv){ string s;int i; if(argc==1) ios::sync_with_stdio(false); FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin); solve(); return 0; }