#include<bits/stdc++.h>
#define FOR(i,n) for(int i=0;i<n;i++)
#define SFOR(i,a,b) for(int i=a;i<b;i++)
#define elif(a) else if(a)
#define INF INT_MAX
#define F first
#define S second
#define endl '\n'
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
ll n;
ll p[65001];
ll j[65001];
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin>>n;
  while(n!=0){
    ll ans=0;
    FOR(i,n){
      cin>>p[i];
      ans+=p[i];
    }
    FOR(i,n-1){
      cin>>j[i];
    }
    ll N=n;
    ll ma=ans*N;
    sort(j,j+n,greater<ll>());
    FOR(i,n-1){

      ans+=j[i];
      N--;
      ll temp=ans*N;
      ma=max(ma,temp);
    }
    cout<<ma<<endl; 
    cin>>n;
  }
  return 0;
}

