#include #include #include #include #include #include #include #define rep(i, n) for(int (i)=0; (i)<(n); ++(i)) using namespace std; int main() { int n; cin >> n; int val[1001]; int ans[1001][2]; rep(i,n) { int x; cin >> x; val[i] = x; } ans[0][0] = 0; ans[0][1] = val[0]; ans[1][0] = val[0]; ans[1][1] = val[1]; for(int i=3; i