print" ".join([w for w in raw_input().split() if sorted(w)==list(w) or w[2:]=="C"])
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page