Codeforces 418 D2D