@@ -0,0 +1,852 @@
+import java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0Apublic class StringTransformation %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        char%5B%5D alphabet = %22abcdefghijklmnopqrstuvwxyz%22.toCharArray();%0A        char%5B%5D input = reader.readLine().toCharArray();%0A        int checkedSymbolIdx = 0;%0A        for (int i = 0; i %3C input.length; i++) %7B%0A            char c = input%5Bi%5D;%0A            char checkedSymbol = alphabet%5BcheckedSymbolIdx%5D;%0A            if (c %3C= checkedSymbol) %7B%0A                input%5Bi%5D = checkedSymbol;%0A                if (++checkedSymbolIdx %3E= alphabet.length) %7B%0A                    System.out.println(input);%0A                    return;%0A                %7D%0A            %7D%0A        %7D%0A        System.out.println(%22-1%22);%0A    %7D%0A%7D%0A

Add StringTransformation