import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { proconScan proScan = new proconScan(" "); Integer A = proScan.scanInteger1(); proScan.scan(); Integer[] costList = proScan.getInt(); Integer[] buf = new Integer[] {0,0} ; Integer[] buf2 = new Integer[2]; for(Integer i=0;i