#include using namespace std; using ll=long long; using pii=pair; #define all(a) a.begin(),a.end() #define pb push_back #define sz(a) ((int)a.size()) const int maxn=200005; int n; ll a[maxn],b[maxn],c[maxn],d[maxn]; signed main(){ ios_base::sync_with_stdio(0),cin.tie(0); cin >> n; for(int i=0; i> a[i]; for(int i=0; i> b[i]; for(int i=0; i> c[i]; for(int i=0; i> d[i]; ll res=0; for(int i=0; i