import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class New { private static final Value used=new Value(-1,-1); public static void main(String[] args) { FastScanner scanner=new FastScanner(); int len=scanner.readInt().intValue; Value[] unsorted=new Value[len]; Value[] sorted=new Value[len]; String[] toStringedNumbers=new String[len]; int sum=0; for(int i=0;i 0; } } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;} private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;} public readInt readInt(){ StringBuilder sb = new StringBuilder(); int b = readByte(); int n=0; while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return new readInt(n,sb.toString()); }else{ throw new NumberFormatException(); } sb.append((char)b); b = readByte(); } } } }