codeforces; solve "Word Capitalization" from Round #172 (Div. 2)