import java.util.*;enum M{M;System z;{String t;for(Scanner s=new Scanner(z.in);(t="I")==t;z.out.println(t))for(byte b:s.nextLine().getBytes())t=b<49?t+"SK":"S(K"+t+")";}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).