Codeforces Round #167 Problem E Dima and Game