/* package whatever; // don't place package name! */
import java.util.Scanner;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner scan
= new Scanner
(System.
in); int size = scan.nextInt();
long arr1[] = new long [size];
long arr2[] = new long [size];
for(int i = 0; i < size; i++){
arr1[i] = scan.nextInt();
}
for(int i = 0; i < size; i++){
arr2[i] = scan.nextInt();
}
long tmp = 0;
for(int i = 0; i < size; i++){
tmp
+= Math.
abs(arr2
[i
] - arr1
[i
]); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJU2Nhbm5lciBzY2FuID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgIGludCBzaXplID0gc2Nhbi5uZXh0SW50KCk7CiAgICBsb25nIGFycjFbXSA9IG5ldyBsb25nIFtzaXplXTsKICAgIGxvbmcgYXJyMltdID0gbmV3IGxvbmcgW3NpemVdOwogICAgZm9yKGludCBpID0gMDsgaSA8IHNpemU7IGkrKyl7CiAgICAgICAgYXJyMVtpXSA9IHNjYW4ubmV4dEludCgpOwogICAgfQogICAgZm9yKGludCBpID0gMDsgaSA8IHNpemU7IGkrKyl7CiAgICAgICAgYXJyMltpXSA9IHNjYW4ubmV4dEludCgpOwogICAgfQogICAgbG9uZyB0bXAgPSAwOwogICAgZm9yKGludCBpID0gMDsgaSA8IHNpemU7IGkrKyl7CiAgICAgICAgdG1wKz0gTWF0aC5hYnMoYXJyMltpXSAtIGFycjFbaV0pOwogICAgfQogICAgU3lzdGVtLm91dC5wcmludGxuICh0bXAgLyAyKTsKCX0KfQ==