round 430 of codeforces (with fixes)
430C