#include #define REP(i,n) for(int i=0,i##_len=(n);i>N; vector X(N); REP(i, N) cin >> X[i]; vector Y(N); REP(i, N) cin >> Y[i]; int ans=INT_MAX; vector tapi(N+2,0); REP(i,N){ ans=min(X[i]+Y[i],ans); } tapi[N+1]=ans; REP(i,N) tapi[i+1]=min(X[i],ans); cout<