import java.util.Scanner; public class Test{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); Long res = (long)0; Long[] c = new Long[n]; Long[] d = new Long[n]; for(int i = 0;i