codeforces; solve "Expression" from Round #274 (Div. 2)