cat(rev(gsub(" (.)","\\1 ",readChar("stdin",(1:2)^9))),sep="")