import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n = koko.nextInt(); long[] c = new long[n]; long[] d = new long[n]; for(int i = 0; i