#include #include #include using namespace std; const int MAXN = 100010; const long long INF = 1LL<<62; int A[MAXN],B[MAXN]; int main() { int n; while(~scanf("%d",&n)) { for(int i=0;i