import sys for line in sys.stdin: print (line, file=sys.stderr) time, handle, msg = line.split(" ", 2) if "bot" in msg: words = msg.split() words.reverse() msg = " ".join(words) print (msg)