public static void main(String []args) throws IOException{ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ StringBuilder out = new StringBuilder(scan.nextLine()); &nbs...