import java.util.Scanner; public class N545 { public static void main(String[] args) { int min=100000; int abs=0; int total=0; Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; int[] b=new int[n]; for(int i=0;i