Problem - D2 - Codeforces