#include using namespace std; #define int long long #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rrep(i,n) for(int (i)=((n)-1);(i)>=0;(i)--) #define itn int #define all(x) (x).begin(),(x).end() #define F first #define S second const long long INF = 1LL << 60; const int MOD = 1000000007; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } signed main(void){ int n; cin>>n; vector a(n), b(n); rep(i,n) cin>>a[i]; rep(i,n) cin>>b[i]; int ma = INF; rep(i,n) ma = min(ma, a[i]+ b[i]); cout< ma) cout<