#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000007; //10^9+7 int n; int v[1002]; int dp[1002][2]; VE ve; void restore(int t,int rest){ if(t<0||rest<0)return ; //print("push "<>n; REP(i,n)cin>>v[i]; ////printall(n,v);/// dp[0][0]=0; dp[0][1]=v[0]; dp[1][0]=v[0]; dp[1][1]=v[1]; ////REP(i,n){REP(j,2)cout<