ll@N,@A[2N],S[2d6]{0,1};setC;rep(i,N)C.insert({A[i],A[i]+A[i+N]});for(auto&c:C)S[c[0]]?S[c[1]]=c[1]:0;wt(max(S(2d6)));