Codeforces 368 D2D