print((io.read"*a":gsub("(.)(.)","%2%1")))