Codeforces Round #162 Problem D Good Sequences