while(0<1)println(readLine.replaceAll("S(?=.*\\* (S*))|0 \\+ | .*","$1"))