#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #ifdef __unix__ #include #else #include "bits\stdc++.h" #endif #include #include #include #include #include #define REP(i,a,b) for(i=a;i #define ll long long #define ull unsigned ll typedef long double ld; #define SQR(X) ((X)*(X)) #define MAX 10005 int main() { int i,j,k,l; int D; ull a[MAX]; cin >> D; rep(i,D+1) cin >> a[i]; rep(i,(D+1)/2) swap(a[i],a[D-i]); // rep(i,D+1) cout << a[i] << " "; // cin >> D; rep(i,D-2) { a[i+2] += a[i]; } for(j=0;j<2;j++) { if(a[i+j] != 0) break; } cout << 2-j << endl; for(k=0;k<2-j;k++) { cout << a[D-k] << " "; } cout << a[D-k] << endl; /*i += j; for(;i