print(""++io.Source.stdin replaceAll("(...)( \\W\\S ) "," $2$1"))